Usage

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
ligo
smartpy
ocaml
whyml
markdown

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

Some features are still under development

VS code extension

The archetype extension provides:

  • syntax highlighting

  • LSP support

  • transcoding commands

coming soon

Try Archetype

coming soon