parser: Added method that makes acorn OMeta compatible