Usage

Milkywaycompiler is a command line tool. It is used by passing arguments to it on the command line.

There are 3 modes of operations, each with its of format for command line input. These formats are:

  • stdin <includesDirectory> [<outputFile>] This is for compiling a file from stdin. Any included files must be present somewhere in <includesDirectory>. (currentely not the case, since no typechecking is done yet). The outputfile argument is optional. If omitted then the generated code is printed on stdout.
  • file <filepath> [<outputFile>] This is for compiling from a file. Any included files must be present somewhere in the same directory as <filepath>. The outputfile argument is optional. If omitted then the generated code is printed on stdout.
  • dir <inputDirectory> <outputDirectory> This is for directory compiling. All the input directory ".galaxy" files are compiled and are put in an identical tree structure in the output directory. Some files may fail to compile, this will not interrupt the compiling process. However a failure exitcode will be given. Any included files must be present somewhere in <inputDirectory>.

Any compile errors are printed on stdout.

Programming Setup

The easiest way to program with this tool is to use an advanced text editor like notepad and then keep a terminal next to that.


Comments

Posts Quoted:
Reply
Clear All Quotes