Releases: jstark/psc
psc-0.8
Frontend
All pascal tokens are lexed correctly. The following constructs are parsed:
BEGIN ... END
compound statements
Assignment statements
Expressions
IF ... THEN
statements
FOR ... DO
statements
WHILE ... DO
statements
REPEAT ... UNTIL
statements
CASE ... OF
statements
No type checking is performed. Actually, variables are not declared at all. Variable declaration, type
checking, function definition and whole program parsing and interpretation is under construction.
Example usage:
psc hello.pas
Passing the option -x performs a cross-reference check on all identifiers in source.
Intermediate
Passing the option -i generates and prints an abstract syntax tree of the input source in xml format.
Backend
All constructs that are parsed, are also interpreted.
psc
Frontend
All pascal tokens are lexed correctly. Only assignments, expressions and compound statements (BEGIN-END) are currently parsed. The syntax checker (use option -s) detects invalid numbers (e.g out of range) and bad characters (e.g $) only. Only the first source file is read.
Example usage:
psc hello.pas
Passing the option -x performs a cross-reference check on all identifiers in source.
Intermediate
Passing the option -i generates and prints an abstract syntax tree of the input source in xml format.
Backend
Nothing yet.