You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Aurélien Bertron edited this page Mar 29, 2015
·
3 revisions
Welcome to the lutcc wiki!
1 User guide
1 - 1 Introduction
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.
1 - 2 Commands
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.
1 - 3 Examples
1 - 3 - 1 Working source code
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;