aboutsummaryrefslogtreecommitdiff
path: root/gramlib/plexing.mli
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2019-03-31 23:07:48 +0200
committerPierre-Marie Pédrot2019-03-31 23:07:48 +0200
commit5dd3c18f4e50eef53ae4413b7b80951f17edad5f (patch)
tree0a104d6afc109b7b89c8997d1afb3bc9f1e89dc3 /gramlib/plexing.mli
parentcb502e44aac8328ffd6c37429e050a01f72b2c53 (diff)
parentf832476404a29d7791c1a6d7970988d3b2e3ad9e (diff)
Merge PR #9733: [lexer] keyword protected quotation token for arbitrary text
Ack-by: Zimmi48 Ack-by: ejgallego Ack-by: gares Reviewed-by: ppedrot
Diffstat (limited to 'gramlib/plexing.mli')
-rw-r--r--gramlib/plexing.mli4
1 files changed, 2 insertions, 2 deletions
diff --git a/gramlib/plexing.mli b/gramlib/plexing.mli
index f6e4d96b80..26443df026 100644
--- a/gramlib/plexing.mli
+++ b/gramlib/plexing.mli
@@ -8,13 +8,13 @@
grammars (see module [Grammar]). It also provides some useful functions
to create lexers. *)
-type pattern = string * string
+type pattern = string * string option
(* Type for values used by the generated code of the EXTEND
statement to represent terminals in entry rules.
- The first string is the constructor name (must start with
an uppercase character). When it is empty, the second string
is supposed to be a keyword.
-- The second string is the constructor parameter. Empty if it
+- The second component is the constructor parameter. None if it
has no parameter (corresponding to the 'wildcard' pattern).
- The way tokens patterns are interpreted to parse tokens is done
by the lexer, function [tok_match] below. *)