add test for DEF HISTORY lines
support full parsing and storage of HISTORY lines
apply some techniques to reduce verbosity in grammar definitions
consolidate parser boilerplate for tests to improve readability
consolidate boilerplate for keyword parser DEF tests