Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 837 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 837 Bytes

Squirrel Compiler for squirrel 3.1

Installing on Windows

  1. git clone --recursive https://github.com/mabako/squirrel-compiler
  2. Build with Visual Studio 2013.

Installing on Linux

  1. git clone --recursive https://github.com/mabako/squirrel-compiler
  2. cd sq-compiler
  3. make

Compiling squirrel scripts

The very simple commandline compiler this is, has merely two arguments

% sq-compiler [source file] [destination file]

So if you ever desired to compile my-script.nut to my-compiled-script.nut you would use the following command-line code:

% sq-compiler my-script.nut my-compiled-script.nut

Errors can have the following two formats:

Error: $generic-error # not generated by squirrel but this program
Error in $filename on line $line column $column: $error # generated by this compiler