Virgil Language Reference: grammar

This reference page contains links to the grammar for the Virgil Programming Language, including various versions. The Virgil prototype compiler uses the JavaCC parser generator to simplify parser development and grammar maintanence.

Virgil B-03

Release B-03 make significant modifications to the grammar for the parser to allow support for adding generic (parametric) types in a future release. The new grammar is compatible with Virgil programs in Release B-02 and earlier, with minor modifications. You can see the new grammar in HTML and the JJ file.

Virgil B-02

The Virgil prototype compiler uses the JavaCC parser generator, which automatically produces a documented grammar file. You can see the grammar in HTML and the JJ file.