Description
Parser, pretty-printer, and more for the Oberon programming language.
Description
The library and the executable support both the original Oberon and the Oberon-2 programming language, as described in the respective language reports.
The original purpose for the library was to be a test of the underlying grammatical-parsers library. The experiment succeeded, so the package can be used in practice.
README.md
language-oberon - Oberon parser, pretty-printer, and more
This package provides a library and executable for parsing and processing the source code in programming language Oberon. The following functionality is presently available:
- Parsing with the grammars specified in the Grammar module.
- Resolution of identifiers and disambiguation of a parsed AST with the Resolver module.
- Checking and reporting of type errors with the TypeChecker module.
- Constant folding with the ConstantFolder module.
- Re-printing of a parsed AST in its original form, preserving the whitespace and comments, with the Reserializer module.
- Pretty-printing of a parsed AST with the Pretty module.