Node: Parsing keywords, Next: , Up: Language definition



So many keywords, so many problems ...

Keywords can be potential problems since they are (generally) not available for use as identifiers. Only those keywords that are defined in ISO 7185 Pascal are unproblematic because no valid program should ever use them as identifiers.

To cope with this problem, GPC does several things:

The following sections describe the most problematic keywords:

These descriptions should make it clear that we're walking on the bleeding edge of what's possible with LALR(1) and lexer tricks. Trying much more will probably increase the complexity to the unmanageable.