Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionBoth sides next revision | ||
alvis:compiler [2017/01/11 23:11] marcin created | alvis:compiler [2021/09/23 08:51] (current) | ||
---|---|---|---|
Line 11: | Line 11: | ||
The default output file is called **out.hs**. One can include the **-o output_file.hs** option to specify the name of the output file. | The default output file is called **out.hs**. One can include the **-o output_file.hs** option to specify the name of the output file. | ||
- | FIXME | + | < |
+ | $> alvisc input_file.alvis -o output_file.hs | ||
+ | </ | ||
+ | |||
+ | A short help about the compiler usage can be generated using the **-h** option: | ||
+ | < | ||
+ | $> alvisc -h | ||
+ | usage: alvisc file [-ald] [-b < | ||
+ | | ||
+ | [-p1] [-p2] [-sim] [-v] [-vm] | ||
+ | | ||
+ | | ||
+ | " | ||
+ | | ||
+ | | ||
+ | --force-generator | ||
+ | | ||
+ | | ||
+ | --force-tree-parsing | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | -o < | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | about errors which maybe helpful for newbie. | ||
+ | </ | ||
+ | |||
+ | ==== Support of Alvis language and limitation of compiler in current alpha version ==== | ||
+ | |||
+ | The current compiler version supports both time and non-time Alvis models with α^0 system layer (multi-processor systems). | ||
+ | |||
+ | Current version __do not__ support: | ||
+ | * commands: | ||
+ | * **out** // | ||
+ | * hierarchical agents - The flat version of the model must be generated before compilation. | ||
+ | |||
+ | |||
+ | ====Example==== | ||
+ | |||
+ | Suppose an Alvis model example.alvis is given. The following UNIX/Linux commands generate the LTS graph in the DOT format: | ||
+ | < | ||
+ | alvisc example.alvis -o example.hs | ||
+ | ghc --make example.hs -o example | ||
+ | ./example > example.dot | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Compiler options and files ==== | ||
+ | |||
+ | Several compiler options allow to configure the output Haskell program. | ||
+ | |||
+ | The most basic option is for choosing to use //time// (default) or // | ||
+ | |||
+ | The standard compiler package comes with // |