module Tnql grammar RegistrationStatus rule registration_status space? status_keyword more_statuses:(','? space? ('and' space)? status_keyword)* end rule status_keyword ('final' / 'provisional' / 'referenced' / 'treatment' space 'only') end end end