Yes, shouldn't be much of an overhead compared to parsing the grammar.