Wat are Reserved Words (Keywords) in a language?

Card Puncher Data Processing

About

A reserved word is a special token in a language that cannot be used by the programmer because they are already used by the application and have a special meaning.

Example

  • In a URL, the backslash is used in the path
  • In Xml, the greater than (<) is used in the tag
  • In Java, the class word is used to define a class

1)





Discover More
Card Puncher Data Processing
Antlr - (Grammar|Lexicon) (g4)

Grammar in the context of Antlr. The grammar definition of Antlr is called a antlr/antlr4/blob/master/doc/lexicon.mdLexicon because the grammar is used by the lexer (hence the lexer grammar) See: ...



Share this page:
Follow us:
Task Runner