Skip to content
CCPEDIAby Unity Nodes
App Development

DAML-LF code

5 posts276 views1 likesLast activity Oct 2024

  1. Iqra_Mustafa1OP

    How I can see DAML-LF? How it generated?

  2. cocreature 1

    You can use daml damlc inspect to view the generated daml-lf code. Note though that the output of this command is not stable across SDK versions and you’re on your own wtr to how to interpret it so I don’t recommend to rely on any specific output here.

  3. Iqra_Mustafa1
    cocreature:

    daml damlc inspect


    This command is not providing any useful bytecode information

  4. cocreature

    You used inspect-dar not inspect

  5. sormeter

    Any reason why daml damlc inspect isn’t included in the help?

    ❯ daml damlc --help
    damlc - Compiler and IDE backend for the Daml programming language
    SDK Version: 2.9.5

    Usage: damlc COMMAND

    Invoke the Daml compiler. Use -h for help.

    Available options:
    -h,–help Show this help text

    Available commands:
    ide Start the Daml language server on standard
    input/output.
    multi-ide Start the Daml Multi-IDE language server on standard
    input/output.
    license License information for open-source projects included
    in Daml.
    package Compile the Daml program into a DAR (deprecated)
    build Initialize, build and package the Daml project
    test Test the current Daml project or the given files by
    running all test declarations. Must be in Daml
    project if --files is not set.
    docs Early Access (Labs). Generate documentation for the
    given Daml program.
    inspect-dar Inspect a DAR archive
    validate-dar Validate a DAR archive
    doctest Early Access (Labs). doc tests
    lint Lint the Daml program.
    repl Launch the Daml REPL.