Skip to content

Commit

Permalink
[ fixed #244 ] document CUP version in Backend Guide
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasabel committed Aug 27, 2019
1 parent 9018887 commit 8077e69
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions docs/user_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,18 @@ Java Backend
Generates abstract syntax, parser and printer as Java code.
Main option: ``--java``.

Entrypoints
...........

Cup can only generate parsers with a single entry point. If multiple entry points
are given using the ``entrypoint`` directive, only the first one will be used.
Otherwise, the first category defined in the grammar file will be used as the
entry point for the grammar.
If you need multiple entrypoints, use ANTLRv4.
CUP
...

By default ``--java`` generates input for the CUP parser generator,
since 2.8.2 CUP version v11b.

.. note::
CUP can only generate parsers with a single entry point. If multiple entry points
are given using the ``entrypoint`` directive, only the first one will be used.
Otherwise, the first category defined in the grammar file will be used as the
entry point for the grammar.
If you need multiple entrypoints, use ANTLRv4.

ANTLRv4
.......
Expand Down

0 comments on commit 8077e69

Please sign in to comment.