× News Cego SysMT Croom Web Statistics Impressum
SysMT Logo

The Dragon Parser Generator

5   Parser analysis mode
Back to TOC

Dragon supports two algorithms for analysing the given grammar and create a corresponding parser module. The default way is to use the LALR method, which is much faster and produces smaller parse tables.

In some cases, it might be useful to a LR(1) analyse method ( to avoid some conflicts ). For this, you sould use dragon in with the LR1 parse analysis mode

$ dragon -p G1 -j -m lr1
Reading Header ...
Reading Terminals ...
Reading Productions ...
Checking Productions ...
Analysing ...
Reached LR(1) elements: 
1...5...10...11...
Generating Code ..