This section describes the high level API to query grammar declarations.
Return grammar prologue code as a string value.
Return grammar epilogue code as a string value.
%packagevalue as a string. If there is no
%packagestatement in the grammar, return a default package name derived from the grammar file name.
See package Decl.
%languagemodevalue as a list of symbols or
See languagemode Decl.
%startvalue as a list of symbols or
See start Decl.
%scopestartvalue as a symbol or
See scopestart Decl.
%quotemodevalue as a symbol or
See quotemode Decl.
Return the language keywords. That is an alist of (VALUE . TOKEN) where VALUE is the string value of the keyword and TOKEN is the terminal symbol identifying the keyword.
See keyword Decl.
Return defined lexical tokens. That is an alist (TYPE . DEFS) where type is a
%token <type>symbol and DEFS is an alist of (TOKEN . VALUE). TOKEN is the terminal symbol identifying the token and VALUE is the string value of the token or
See token Decl.
Return properties of declared types. Types are explicitly declared by
%typestatements. Types found in TOKENS are those declared implicitly by
%tokenstatements. Properties can be set by
%typestatements. Properties set by
%typestatements take precedence over those set by
See token Decl, See type Decl, See put Decl.
Return macro definitions from
%use-macrosstatements. Also load the specified macro libraries.
See use-macros Decl.