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.
Files changed (2) hide show
  1. package/README.md +22 -19
  2. 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
- "special": "^(?:\\||\\(|\\)|\\?|\\*|\\+|\\.\\.\\.|\\.\\.|\\.|::=|;|`|ε|<START_OF_CONTENT>|<NO_WHITESPACE>|<END_OF_LINE>)"
46
- },
47
- {
48
- "number": "^(?:0|[1-9][0-9]*)"
49
- },
50
- {
51
- "name": "^[\\w~]+"
52
- },
53
- {
54
- "type": "^\\[[^\\]]+\\]"
55
- },
56
- {
57
- "unassigned": "^[^\\s]+"
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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "occam-lexers",
3
3
  "author": "James Smith",
4
- "version": "23.2.1",
4
+ "version": "23.2.2",
5
5
  "license": "MIT, Anti-996",
6
6
  "homepage": "https://github.com/djalbat/occam-lexers",
7
7
  "description": "Occam's lexers.",