aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2021-06-09 23:21:35 +0900
committerRyo Nihei <nihei.dev@gmail.com>2021-06-10 23:20:00 +0900
commit7e169f85726a1a1067d08e92cbbb2707ffb4d7b0 (patch)
tree84a8985eb10a2df7d550bba1800fd84712ceb488 /cmd
parentUpdate README (diff)
downloadtre-7e169f85726a1a1067d08e92cbbb2707ffb4d7b0.tar.gz
tre-7e169f85726a1a1067d08e92cbbb2707ffb4d7b0.tar.xz
Support passive mode transition
Diffstat (limited to 'cmd')
-rw-r--r--cmd/maleeni/lex.go5
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,