occam-lexers 23.2.1 → 23.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -19
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,25 +39,27 @@ Non-significant tokens are ignored by parsers although they separate significant
|
|
|
39
39
|
|
|
40
40
|
The lexical entries for the BNF lexer are the following:
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
42
|
+
```
|
|
43
|
+
[
|
|
44
|
+
|
|
45
|
+
{
|
|
46
|
+
"special": "^(?:\\||\\(|\\)|\\?|\\*|\\+|\\.\\.\\.|\\.\\.|\\.|::=|;|`|ε|<START_OF_CONTENT>|<NO_WHITESPACE>|<END_OF_LINE>)"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"number": "^(?:0|[1-9][0-9]*)"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "^[\\w~]+"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "^\\[[^\\]]+\\]"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"unassigned": "^[^\\s]+"
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
]
|
|
62
|
+
```
|
|
61
63
|
|
|
62
64
|
## Installation
|
|
63
65
|
|
|
@@ -114,6 +116,7 @@ const content = `
|
|
|
114
116
|
|
|
115
117
|
...
|
|
116
118
|
```
|
|
119
|
+
|
|
117
120
|
The tokens are created with the `tokenise(...)` method.
|
|
118
121
|
|
|
119
122
|
## Building
|