i have defined a grammar with many rules, that uses many keywords. imagine it like this (just with more of these rules and more keywords):
<keyword> ::= 'public' | 'protected' | 'private'
the gold-parser-system is generating a compiled grammar table (CGT) file, which is used by the several engines, in my case the calitha-engine for c#.
in order to realize some syntax-highlighting for my sourcecode which i want to parse, i want to get all the keywords of a range of rules. how do i extract them?
Apart from generating "cgt" output file, Gold Builder has also XML output capability.
If you feel comfortable with XML processing, I suggest you to extract the keywords using XML as one possible solution (See documentation).
Here is a sample grammar XML file :
XML as human readable format is self explanatory, you have access to all tables : Symbol, Rule, DFA and LALR and that's it.
Of course, cooking a "pgt" file (program template) is the usual way to process "cgt" or even write some extract utility for the purpose on top of a Gold Engine.