class_docstr: Parser for ASDL files.
  
  Create, then call the parse method on a buffer containing ASDL.
  This is a simple recursive descent parser that uses tokenize_asdl for the
  lexing.
class_docstr_tok: ["Parser","for","ASDL","files",".","Create",",","then","call","the","parse","method","on","a","buffer","containing","ASDL",".","This","is","a","simple","recursive","descent","parser","that","uses","tokenize_asdl","for","the","lexing","."]
docstr: The 'match' primitive of RD parsers.
  
  * Verifies that the current token is of the given kind (kind can
    be a tuple, in which the kind must match one of its members).
  * Returns the value of the current token
  * Reads in the next token
docstr_tok: ["The","'match","'","primitive","of","RD","parsers",".","*","Verifies","that","the","current","token","is","of","the","given","kind","(","kind","can","be","a","tuple",",","in","which","the","kind","must","match","one","of","its","members",")",".","*","Returns","the","value","of","the","current","token","*","Reads","in","the","next","token"]
code: def _match(self, kind):
      """The 'match' primitive of RD parsers.
  
      * Verifies that the current token is of the given kind (kind can
        be a tuple, in which the kind must match one of its members).
      * Returns the value of the current token
      * Reads in the next token
      """
      if (
          isinstance(kind, tuple)
          and self.cur_token.kind in kind
          or self.cur_token.kind == kind
      ):
          value = self.cur_token.value
          self._advance()
          return value
      else:
          raise ASDLSyntaxError(
              "Unmatched {} (found {})".format(
                  kind, self.cur_token.kind
              ),
              self.cur_token.lineno,
          )
  
imports: from collections import namedtuple
  import re
label_desc: Use image node_id 12 for calling the ASDLParser obj's underlying member method code with example usage: obj._match(kind) and returns: value