forked from jasder/antlr
commit
abec175253
|
@ -229,6 +229,7 @@ YYYY/MM/DD, github id, Full name, email
|
||||||
2019/07/11, olowo726, Olof Wolgast, olof@baah.se
|
2019/07/11, olowo726, Olof Wolgast, olof@baah.se
|
||||||
2019/07/16, abhijithneilabraham, Abhijith Neil Abraham, abhijithneilabrahampk@gmail.com
|
2019/07/16, abhijithneilabraham, Abhijith Neil Abraham, abhijithneilabrahampk@gmail.com
|
||||||
2019/07/26, Braavos96, Eric Hettiaratchi, erichettiaratchi@gmail.com
|
2019/07/26, Braavos96, Eric Hettiaratchi, erichettiaratchi@gmail.com
|
||||||
|
2019/08/02, thron7, Thomas Herchenroeder, thron7[at]users[dot]sourceforge[dot]net
|
||||||
2019/08/12, easonlin404, Eason Lin, easonlin404@gmail.com
|
2019/08/12, easonlin404, Eason Lin, easonlin404@gmail.com
|
||||||
2019/08/23, akaJes, Oleksandr Mamchyts, akaJes@gmail.com
|
2019/08/23, akaJes, Oleksandr Mamchyts, akaJes@gmail.com
|
||||||
2019/08/27, wurzelpeter, Markus Franke, markus[hyphen]franke[at]web[dot]de
|
2019/08/27, wurzelpeter, Markus Franke, markus[hyphen]franke[at]web[dot]de
|
||||||
|
|
|
@ -25,7 +25,7 @@ fragment DIGIT : [0-9] ; // not a token by itself
|
||||||
|
|
||||||
## Lexical Modes
|
## Lexical Modes
|
||||||
|
|
||||||
Modes allow you to group lexical rules by context, such as inside and outside of XML tags. It’s like having multiple sublexers, one for context. The lexer can only return tokens matched by entering a rule in the current mode. Lexers start out in the so-called default mode. All rules are considered to be within the default mode unless you specify a mode command. Modes are not allowed within combined grammars, just lexer grammars. (See grammar `XMLLexer` from [Tokenizing XML](http://pragprog.com/book/tpantlr2/the-definitive-antlr-4-reference).)
|
Modes allow you to group lexical rules by context, such as inside and outside of XML tags. It’s like having multiple sublexers, one for each context. The lexer can only return tokens matched by entering a rule in the current mode. Lexers start out in the so-called default mode. All rules are considered to be within the default mode unless you specify a mode command. Modes are not allowed within combined grammars, just lexer grammars. (See grammar `XMLLexer` from [Tokenizing XML](http://pragprog.com/book/tpantlr2/the-definitive-antlr-4-reference).)
|
||||||
|
|
||||||
```
|
```
|
||||||
rules in default mode
|
rules in default mode
|
||||||
|
|
Loading…
Reference in New Issue