March 2001
Intermediate to advanced
400 pages
8h 35m
English
You can write the code of a parser directly from its grammar. You apply each principle of grammar translation in turn until the grammar becomes a set of Java statements that define a parser. The following principles apply:
Treat each quoted word, such as "pick", as a CaselessLiteral. For example, translate
pickCommand = "pick" "carrier" "from" location;
to
pickCommand = new CaselessLiteral("pick") ...Read now
Unlock full access