From 7e169f85726a1a1067d08e92cbbb2707ffb4d7b0 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Wed, 9 Jun 2021 23:21:35 +0900 Subject: Support passive mode transition --- cmd/maleeni/lex.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmd/maleeni') 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, -- cgit v1.2.3