-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Aurélien Bertron edited this page Mar 29, 2015
·
3 revisions
Welcome to the lutcc wiki!
Lutcc allows you to compile, execute, and optimize source code written in lutin language. All you have to do is executing lutcc and provide the program by specifying its path.
Several options are available, each option will be described below :
-h [ --help ] : Prints this help
-p [ --print ] : Prints the internal representation
-a [ --analyze ] : Analyzes code and outputs error to stderr
-e [ --exec ] : Executes the given Lutin program
-o [ --optim ] : Optimizes the program by simplifying it
Advises about some options
- When you use the help option, lutcc will print the help and won't do anything else.
- When you use the print option, lutcc will print the given source code and will keep doing its job.
- When you use the analyze option, lutcc will show the semantic errors while doing its regular job.
var a,b;
const c = 4;
const d = 6, z = 2;
var e;
a := (c + d) * 3 - 5;
lire b;
ecrire a*b;
e := b+d;
ecrire e;
var x;
x := z*2;
Lutcc will display that z is undeclared.