support part of pegjs's grammar.