grammar HQ9plus::Grammar is PCT::Grammar;

token TOP { <statement>* [ $ || <panic: Syntax error> ] {*} }

token statement { | <hello> {*} #= hello | <quine> {*} #= quine | <nintynine_bottles_of_beer> {*} #= nintynine_bottles_of_beer | <plus> {*} #= plus }

token hello { 'H' \s* {*} }

token quine { 'Q' \s* {*} }

token nintynine_bottles_of_beer { '9' \s* {*} }

token plus { '+' \s* {*} }


parrot