functionalscript 0.0.449 → 0.0.451

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/fsm/README.md +20 -0
  2. package/package.json +1 -1
package/fsm/README.md CHANGED
@@ -12,3 +12,23 @@ This module is about a [finite-state machine](https://en.wikipedia.org/wiki/Fini
12
12
 
13
13
  - `init state`
14
14
  - `FA Epression`
15
+
16
+ ## Example
17
+
18
+ FunctionalScript Identifier
19
+
20
+ ### Grammar (EBNF)
21
+
22
+ ```
23
+ id ::= `_$a..zA..Z` id2
24
+ id2 ::= `_$a..zA..Z0..9` id2
25
+ ```
26
+
27
+ ### FA
28
+
29
+ ```js
30
+ const grammar = [
31
+ ['init', '_$a..zA..Z', 'id'],
32
+ ['id', '_$a..zA..Z0..9', 'id'],
33
+ ]
34
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "functionalscript",
3
- "version": "0.0.449",
3
+ "version": "0.0.451",
4
4
  "description": "FunctionalScript is a functional subset of JavaScript",
5
5
  "main": "module.f.cjs",
6
6
  "scripts": {