diff options
| author | Ryo Nihei <nihei.dev@gmail.com> | 2021-06-09 23:21:35 +0900 |
|---|---|---|
| committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-06-10 23:20:00 +0900 |
| commit | 7e169f85726a1a1067d08e92cbbb2707ffb4d7b0 (patch) | |
| tree | 84a8985eb10a2df7d550bba1800fd84712ceb488 /cmd/maleeni | |
| parent | Update README (diff) | |
| download | tre-7e169f85726a1a1067d08e92cbbb2707ffb4d7b0.tar.gz tre-7e169f85726a1a1067d08e92cbbb2707ffb4d7b0.tar.xz | |
Support passive mode transition
Diffstat (limited to 'cmd/maleeni')
| -rw-r--r-- | cmd/maleeni/lex.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/maleeni/lex.go b/cmd/maleeni/lex.go index e6eab18..142f996 100644 --- a/cmd/maleeni/lex.go +++ b/cmd/maleeni/lex.go @@ -24,7 +24,10 @@ func init() { Use: "lex clexspec", Short: "Tokenize a text stream", Long: `lex takes a text stream and tokenizes it according to a compiled lexical specification. -As use ` + "`maleeni compile`" + `, you can generate the specification.`, +As use ` + "`maleeni compile`" + `, you can generate the specification. + +Note that passive mode transitions are not performed. Thus, if there is a mode in +your lexical specification that is set passively, lexemes in that mode will not be recognized.`, Example: ` cat src | maleeni lex clexspec.json`, Args: cobra.ExactArgs(1), RunE: runLex, |
