Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
82 lines (61 sloc) 1.78 KB


Command line

To transcode say an archetype file escrow.arl to ligo:

$ archetype -t ligo escrow.arl

To transcode to whyml:

$ archetype -t whyml escrow.arl

To list available target languages:

$ archetype --list-target

To list available commands:

$ archetype --help
usage : archetype [-t <lang> | -pt | -ext | -tast | [-as] [-nse] | -lsp <request>] [-r | -json] <file>

Available options:
  -t <lang>           Transcode to <lang> language
  --target            Same as -t
  --list-target       List available target languages
  -pt                 Generate parse tree
  --parse-tree        Same as -pt
  -ext                Process extensions
  --extensions        Same as -ext
  -tast               Generate typed ast
  --typed-ast         Same as -tast
  -sa                 Transform to shallow asset
  --shallow-asset     Same as -sa
  -nse                Remove side effect
  --no-side-effect    Same as -nse
  -lsp <request>      Generate language server protocol response to <resquest>
  --list-lsp-request  List available request for lsp
  -r                  Print raw tree
  --raw               Same as -r
  -json               Print JSON format
  -help               Display this list of options
  --help              Display this list of options

{% hint style="warning" %} Some features are still under development {% endhint %}

VS code extension

The archetype extension provides:

  • syntax highlighting
  • LSP support
  • transcoding commands

{% hint style="warning" %} coming soon {% endhint %}

Try Archetype

{% hint style="warning" %} coming soon {% endhint %}

You can’t perform that action at this time.