Declare a language keyword (a reserved word).
- Is the terminal symbol used in grammar rules to represent this reserved word.
- Is the actual value of the keyword as a string.
Here is how the
endifkeywords might be declared:%keyword IF "if" %keyword ELSE "else" %keyword ENDIF "endif"
Keywords have the implicit reserved type
keyword(see type Decl).
In the generated library, keyword declarations are defined in the
--keyword-table. The keyword table
value is an Emacs Lisp obarray, available at run time in the parsed
buffer, in the buffer local variable
However you shouldn't use that variable directly. semantic provides the following API to use with language keywords at run time.
semantic-lex-keyword-pintroduced in semantic version 2.0 supercedes
semantic-flex-keyword-pwhich is now obsolete.
semantic-lex-map-keywordsintroduced in semantic version 2.0 supercedes
semantic-flex-map-keywordswhich is now obsolete.
Return a list of semantic keywords. If optional PROPERTY is non-
nil, return only keywords which have a PROPERTY set (see put Decl).Compatibility:
semantic-lex-keywordsintroduced in semantic version 2.0 supercedes
semantic-flex-keywordswhich is now obsolete.