Skip to content

Releases: jstark/psc

psc-0.8

13 Apr 20:47
Compare
Choose a tag to compare
psc-0.8 Pre-release
Pre-release

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

05 Apr 14:55
Compare
Choose a tag to compare
psc Pre-release
Pre-release

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.