-
Notifications
You must be signed in to change notification settings - Fork 0
Using the ALEC
After you've written an Algo program, you can either interpret it using the Algo Language Interpreter (ALI), or you can compile it to a native binary using ALEC (the Algo Language Executable Compiler). This page will show you how to use the tool, and issues you may encounter when using it.
To compile a program using ALEC, use the -c
flag, and pass in a file. An example would be "algo -c foo.ag
". Once this happens, the compiler will automatically begin to run, and show a screen such as the one below.
______ __ ______ ______
/\ __ \ /\ \ /\ ___\ /\ ___\
\ \ __ \ \ \ \____ \ \ __\ \ \ \____
\ \_\ \_\ \ \_____\ \ \_____\ \ \_____\
\/_/\/_/ \/_____/ \/_____/ \/_____/
ALEC (Algo Language Executable Compiler) v0.1.7186, build 33515
Framework: .NET Framework ENV 4.0.30319.42000
Operating System: Microsoft Windows NT 6.2.9200.0
Build Mode: 64 bit
Here you can see the build mode, operating system and framework that the compiler is building for (the executable generated will likely only work on these), as well as the version of ALEC that you are using. Please provide this information if you submit a bug report for ALEC! After this, the compiler will generate an executable in the folder that you ran Algo from, with the name of your project.
Below is a list of common issues, and how you might solve them.
Algo (c) Larry Tang, 2019.
Commercial use of Algo must include the LICENSE
file in the same directory as the executable.
Standard Library Documentation: