It is intended to be used for specifying package and import statements, for example:%top { package net.zerobone.grammax.parser; import net.zerobone.grammax.ast.*; import net.zerobone.grammax.lexer.*; import net.zerobone.grammax.utils.StringUtils; } ...
The parsing table consisting of the ACTION and GOTO functions determined by Algorithm 4.46 is called the SLR(1) table for G. An LR parser using the SLR(1) table for G is called the SLR (1) parser for G, and a grammar having an SLR (1) parsing table is said to be SLR(1). We ...