/language-oberon

Parser and pretty-printer for the Oberon programming language

Primary LanguageHaskellGNU General Public License v3.0GPL-3.0

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.