grammar Jobs { token TOP { ^ '$JOBS' $ } role job_def { [ || .* # if there is no way to parse # a job definition, dummy-parse # the rest of the string to prevent # outright failure ]+ } }