/example Overview

Return to Contents
calc.adb Implements a basic expression calculator using lexer and parser combinators. Can handle + - * / ^ () operators. Run with the --help switch for more info.
sentence.adb Implements the sentence grammar used as an example in the reference paper on pages 2-3.
ssss.adb Implements the highly ambiguous s grammar used in the reference paper on pages 5 and 12-13. Length of input can be adjusted by command line argument and is therefore good for experiments on complexity of the library. Also responds to the --help switch.