Test rule system based off of js grammar.pegjs