As of 2026-11-22, the AST based interpreter is able to run Pascal programs with the following constructs.
EBNF grammar is up to date, too.
- The lexer is split into dedicated number, string, and core lexer modules.
- Console input supports
Read,ReadLn, andReadStr. - File-oriented input and output remain to be implemented.
- Documentation and the remaining system procedures are under active work.
Integer,Unsigned,Real,Boolean,CharString: fixed-size buffers (max 255 chars, no garbage collection, a long running program will exhaust memory)Array: multi-dimensional arraysTypedefinition for subranges & enumerations
To variable from an expression with :=.
- Arithmetic:
+,-,*,/,DIV,MOD - Relational:
=,<>,<,<=,>,>= - Logical:
AND,OR,NOT - Bitwise:
SHL,SHR,AND,OR,XOR,NOT - Array item access with
[]
- to standard output with
Write/WriteLn - to strings with
WriteStr - formatting with
:widthfor integers,:width:precisionfor reals
- from standard input with
Read/ReadLn - from a string with
ReadStr - reading through files is not implemented yet
If/Then/Else
Repeat/UntilWhile/DoFor/To/Downto/Do
- Enumerations
- Subranges for
Char,Integer,Unsigned,Enum
- see System Library
- Parameters / arguments
Varparameters are not thoroughly tested, as are Arrays- passing arrays by value is not supported
- Recursivity works
- No forward declarations yet