tree-sitter-beancount 2.3.2 → 2.4.0

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 (45) hide show
  1. package/README.md +334 -4
  2. package/binding.gyp +17 -7
  3. package/bindings/node/binding.cc +14 -22
  4. package/bindings/node/index.d.ts +28 -0
  5. package/bindings/node/index.js +3 -15
  6. package/grammar.js +52 -128
  7. package/package.json +35 -5
  8. package/src/grammar.json +272 -562
  9. package/src/node-types.json +76 -21
  10. package/src/parser.c +8740 -8678
  11. package/src/scanner.c +345 -67
  12. package/src/tree_sitter/alloc.h +54 -0
  13. package/src/tree_sitter/array.h +291 -0
  14. package/src/tree_sitter/parser.h +68 -12
  15. package/.clang-format +0 -20
  16. package/.envrc +0 -1
  17. package/.gitattributes +0 -6
  18. package/.github/dependabot.yml +0 -11
  19. package/.github/workflows/cicd.yml +0 -30
  20. package/.github/workflows/release.yml +0 -72
  21. package/CHANGELOG.md +0 -72
  22. package/Cargo.lock +0 -59
  23. package/Cargo.toml +0 -26
  24. package/Package.swift +0 -20
  25. package/bindings/rust/build.rs +0 -39
  26. package/bindings/rust/lib.rs +0 -52
  27. package/flake.lock +0 -141
  28. package/flake.nix +0 -120
  29. package/test/corpus/arithmetic.txt +0 -373
  30. package/test/corpus/comment.txt +0 -172
  31. package/test/corpus/currencies.txt +0 -66
  32. package/test/corpus/entry_types.txt +0 -389
  33. package/test/corpus/markdown_orgmode.txt +0 -60
  34. package/test/corpus/metadata.txt +0 -414
  35. package/test/corpus/multi_line.txt +0 -27
  36. package/test/corpus/orgmode_sections.txt +0 -53
  37. package/test/corpus/parse_lots.txt +0 -417
  38. package/test/corpus/parser_include.txt +0 -23
  39. package/test/corpus/parser_links.txt +0 -32
  40. package/test/corpus/parser_options.txt +0 -39
  41. package/test/corpus/parser_plugin.txt +0 -35
  42. package/test/corpus/push_pop_meta.txt +0 -34
  43. package/test/corpus/push_pop_tag.txt +0 -23
  44. package/test/corpus/transaction.txt +0 -224
  45. package/test/corpus/ugly_bugs.txt +0 -52
package/src/grammar.json CHANGED
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "https://tree-sitter.github.io/tree-sitter/assets/schemas/grammar.schema.json",
2
3
  "name": "beancount",
3
4
  "word": "identifier",
4
5
  "rules": {
@@ -44,7 +45,7 @@
44
45
  },
45
46
  "_any": {
46
47
  "type": "PATTERN",
47
- "value": ".*"
48
+ "value": "[^\\r\\n]*"
48
49
  },
49
50
  "section": {
50
51
  "type": "SEQ",
@@ -69,21 +70,18 @@
69
70
  {
70
71
  "type": "SYMBOL",
71
72
  "name": "_nl"
73
+ },
74
+ {
75
+ "type": "FIELD",
76
+ "name": "subsection",
77
+ "content": {
78
+ "type": "SYMBOL",
79
+ "name": "section"
80
+ }
72
81
  }
73
82
  ]
74
83
  }
75
84
  },
76
- {
77
- "type": "REPEAT",
78
- "content": {
79
- "type": "FIELD",
80
- "name": "subsection",
81
- "content": {
82
- "type": "SYMBOL",
83
- "name": "section"
84
- }
85
- }
86
- },
87
85
  {
88
86
  "type": "SYMBOL",
89
87
  "name": "_sectionend"
@@ -99,7 +97,7 @@
99
97
  },
100
98
  {
101
99
  "type": "PATTERN",
102
- "value": "\\*+"
100
+ "value": "(\\*|#)+"
103
101
  }
104
102
  ]
105
103
  },
@@ -111,8 +109,11 @@
111
109
  "name": "_org_stars"
112
110
  },
113
111
  {
114
- "type": "PATTERN",
115
- "value": "[ \\t]+"
112
+ "type": "TOKEN",
113
+ "content": {
114
+ "type": "PATTERN",
115
+ "value": "[ \\t]+"
116
+ }
116
117
  },
117
118
  {
118
119
  "type": "CHOICE",
@@ -137,8 +138,11 @@
137
138
  ]
138
139
  },
139
140
  "item": {
140
- "type": "SYMBOL",
141
- "name": "_any"
141
+ "type": "TOKEN",
142
+ "content": {
143
+ "type": "PATTERN",
144
+ "value": "[^\\r\\n]+"
145
+ }
142
146
  },
143
147
  "_indent": {
144
148
  "type": "TOKEN",
@@ -214,7 +218,7 @@
214
218
  "type": "TOKEN",
215
219
  "content": {
216
220
  "type": "PATTERN",
217
- "value": "([12]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))"
221
+ "value": "([12]\\d{3}[-\\/](0[1-9]|1[0-2])[-\\/](0[1-9]|[12]\\d|3[01]))"
218
222
  }
219
223
  },
220
224
  "account": {
@@ -237,7 +241,7 @@
237
241
  },
238
242
  {
239
243
  "type": "PATTERN",
240
- "value": "[\\p{Lu}\\p{N}][\\p{L}\\p{N}\\-]*"
244
+ "value": "[\\p{Lu}\\p{N}\\u3040-\\u309f\\u30a0-\\u30ff\\u4e00-\\u9fff\\uac00-\\ud7a3][\\p{L}\\p{N}\\u3040-\\u309f\\u30a0-\\u30ff\\u4e00-\\u9fff\\uac00-\\ud7a3\\-]*"
241
245
  }
242
246
  ]
243
247
  }
@@ -249,14 +253,14 @@
249
253
  "type": "TOKEN",
250
254
  "content": {
251
255
  "type": "PATTERN",
252
- "value": "[A-Z][A-Z0-9\\'\\._\\-]{0,22}[A-Z0-9]"
256
+ "value": "[A-Z]([A-Z0-9\\'\\._\\-]{0,22}[A-Z0-9])?"
253
257
  }
254
258
  },
255
259
  "string": {
256
260
  "type": "TOKEN",
257
261
  "content": {
258
262
  "type": "PATTERN",
259
- "value": "\"[^\"]*\""
263
+ "value": "\"([^\"]|\\\\\")*\""
260
264
  }
261
265
  },
262
266
  "number": {
@@ -653,8 +657,12 @@
653
657
  "name": "_indent"
654
658
  },
655
659
  {
656
- "type": "SYMBOL",
657
- "name": "comment"
660
+ "type": "FIELD",
661
+ "name": "comment",
662
+ "content": {
663
+ "type": "SYMBOL",
664
+ "name": "comment"
665
+ }
658
666
  },
659
667
  {
660
668
  "type": "SYMBOL",
@@ -694,371 +702,129 @@
694
702
  "name": "incomplete_amount"
695
703
  },
696
704
  "posting": {
697
- "type": "CHOICE",
705
+ "type": "SEQ",
698
706
  "members": [
699
707
  {
700
- "type": "SEQ",
701
- "members": [
702
- {
703
- "type": "SYMBOL",
704
- "name": "_indent"
705
- },
706
- {
707
- "type": "FIELD",
708
- "name": "optflag",
709
- "content": {
710
- "type": "CHOICE",
711
- "members": [
712
- {
713
- "type": "SYMBOL",
714
- "name": "optflag"
715
- },
716
- {
717
- "type": "BLANK"
718
- }
719
- ]
720
- }
721
- },
722
- {
723
- "type": "FIELD",
724
- "name": "account",
725
- "content": {
708
+ "type": "SYMBOL",
709
+ "name": "_indent"
710
+ },
711
+ {
712
+ "type": "FIELD",
713
+ "name": "optflag",
714
+ "content": {
715
+ "type": "CHOICE",
716
+ "members": [
717
+ {
726
718
  "type": "SYMBOL",
727
- "name": "account"
719
+ "name": "optflag"
720
+ },
721
+ {
722
+ "type": "BLANK"
728
723
  }
729
- },
730
- {
731
- "type": "FIELD",
732
- "name": "amount",
733
- "content": {
734
- "type": "CHOICE",
735
- "members": [
736
- {
737
- "type": "SYMBOL",
738
- "name": "incomplete_amount"
739
- },
740
- {
741
- "type": "BLANK"
742
- }
743
- ]
724
+ ]
725
+ }
726
+ },
727
+ {
728
+ "type": "FIELD",
729
+ "name": "account",
730
+ "content": {
731
+ "type": "SYMBOL",
732
+ "name": "account"
733
+ }
734
+ },
735
+ {
736
+ "type": "FIELD",
737
+ "name": "amount",
738
+ "content": {
739
+ "type": "CHOICE",
740
+ "members": [
741
+ {
742
+ "type": "SYMBOL",
743
+ "name": "incomplete_amount"
744
+ },
745
+ {
746
+ "type": "BLANK"
744
747
  }
745
- },
746
- {
747
- "type": "FIELD",
748
- "name": "cost_spec",
749
- "content": {
750
- "type": "CHOICE",
751
- "members": [
752
- {
753
- "type": "SYMBOL",
754
- "name": "cost_spec"
755
- },
756
- {
757
- "type": "BLANK"
758
- }
759
- ]
748
+ ]
749
+ }
750
+ },
751
+ {
752
+ "type": "FIELD",
753
+ "name": "cost_spec",
754
+ "content": {
755
+ "type": "CHOICE",
756
+ "members": [
757
+ {
758
+ "type": "SYMBOL",
759
+ "name": "cost_spec"
760
+ },
761
+ {
762
+ "type": "BLANK"
760
763
  }
761
- },
764
+ ]
765
+ }
766
+ },
767
+ {
768
+ "type": "CHOICE",
769
+ "members": [
762
770
  {
763
- "type": "FIELD",
764
- "name": "comment",
765
- "content": {
766
- "type": "CHOICE",
767
- "members": [
768
- {
769
- "type": "SYMBOL",
770
- "name": "comment"
771
- },
772
- {
773
- "type": "BLANK"
771
+ "type": "SEQ",
772
+ "members": [
773
+ {
774
+ "type": "CHOICE",
775
+ "members": [
776
+ {
777
+ "type": "SYMBOL",
778
+ "name": "at"
779
+ },
780
+ {
781
+ "type": "SYMBOL",
782
+ "name": "atat"
783
+ }
784
+ ]
785
+ },
786
+ {
787
+ "type": "FIELD",
788
+ "name": "price_annotation",
789
+ "content": {
790
+ "type": "CHOICE",
791
+ "members": [
792
+ {
793
+ "type": "SYMBOL",
794
+ "name": "price_annotation"
795
+ },
796
+ {
797
+ "type": "BLANK"
798
+ }
799
+ ]
774
800
  }
775
- ]
776
- }
801
+ }
802
+ ]
777
803
  },
778
804
  {
779
- "type": "SYMBOL",
780
- "name": "_eol"
805
+ "type": "BLANK"
781
806
  }
782
807
  ]
783
808
  },
784
809
  {
785
- "type": "SEQ",
786
- "members": [
787
- {
788
- "type": "SYMBOL",
789
- "name": "_indent"
790
- },
791
- {
792
- "type": "FIELD",
793
- "name": "optflag",
794
- "content": {
795
- "type": "CHOICE",
796
- "members": [
797
- {
798
- "type": "SYMBOL",
799
- "name": "optflag"
800
- },
801
- {
802
- "type": "BLANK"
803
- }
804
- ]
805
- }
806
- },
807
- {
808
- "type": "FIELD",
809
- "name": "account",
810
- "content": {
810
+ "type": "FIELD",
811
+ "name": "comment",
812
+ "content": {
813
+ "type": "CHOICE",
814
+ "members": [
815
+ {
811
816
  "type": "SYMBOL",
812
- "name": "account"
813
- }
814
- },
815
- {
816
- "type": "FIELD",
817
- "name": "amount",
818
- "content": {
819
- "type": "CHOICE",
820
- "members": [
821
- {
822
- "type": "SYMBOL",
823
- "name": "incomplete_amount"
824
- },
825
- {
826
- "type": "BLANK"
827
- }
828
- ]
829
- }
830
- },
831
- {
832
- "type": "FIELD",
833
- "name": "cost_spec",
834
- "content": {
835
- "type": "CHOICE",
836
- "members": [
837
- {
838
- "type": "SYMBOL",
839
- "name": "cost_spec"
840
- },
841
- {
842
- "type": "BLANK"
843
- }
844
- ]
845
- }
846
- },
847
- {
848
- "type": "SYMBOL",
849
- "name": "at"
850
- },
851
- {
852
- "type": "FIELD",
853
- "name": "price_annotation",
854
- "content": {
855
- "type": "CHOICE",
856
- "members": [
857
- {
858
- "type": "SYMBOL",
859
- "name": "price_annotation"
860
- },
861
- {
862
- "type": "BLANK"
863
- }
864
- ]
865
- }
866
- },
867
- {
868
- "type": "FIELD",
869
- "name": "comment",
870
- "content": {
871
- "type": "CHOICE",
872
- "members": [
873
- {
874
- "type": "SYMBOL",
875
- "name": "comment"
876
- },
877
- {
878
- "type": "BLANK"
879
- }
880
- ]
817
+ "name": "comment"
818
+ },
819
+ {
820
+ "type": "BLANK"
881
821
  }
882
- },
883
- {
884
- "type": "SYMBOL",
885
- "name": "_eol"
886
- }
887
- ]
822
+ ]
823
+ }
888
824
  },
889
825
  {
890
- "type": "SEQ",
891
- "members": [
892
- {
893
- "type": "SYMBOL",
894
- "name": "_indent"
895
- },
896
- {
897
- "type": "FIELD",
898
- "name": "optflag",
899
- "content": {
900
- "type": "CHOICE",
901
- "members": [
902
- {
903
- "type": "SYMBOL",
904
- "name": "optflag"
905
- },
906
- {
907
- "type": "BLANK"
908
- }
909
- ]
910
- }
911
- },
912
- {
913
- "type": "FIELD",
914
- "name": "account",
915
- "content": {
916
- "type": "SYMBOL",
917
- "name": "account"
918
- }
919
- },
920
- {
921
- "type": "FIELD",
922
- "name": "amount",
923
- "content": {
924
- "type": "CHOICE",
925
- "members": [
926
- {
927
- "type": "SYMBOL",
928
- "name": "incomplete_amount"
929
- },
930
- {
931
- "type": "BLANK"
932
- }
933
- ]
934
- }
935
- },
936
- {
937
- "type": "FIELD",
938
- "name": "cost_spec",
939
- "content": {
940
- "type": "CHOICE",
941
- "members": [
942
- {
943
- "type": "SYMBOL",
944
- "name": "cost_spec"
945
- },
946
- {
947
- "type": "BLANK"
948
- }
949
- ]
950
- }
951
- },
952
- {
953
- "type": "SYMBOL",
954
- "name": "atat"
955
- },
956
- {
957
- "type": "FIELD",
958
- "name": "price_annotation",
959
- "content": {
960
- "type": "CHOICE",
961
- "members": [
962
- {
963
- "type": "SYMBOL",
964
- "name": "price_annotation"
965
- },
966
- {
967
- "type": "BLANK"
968
- }
969
- ]
970
- }
971
- },
972
- {
973
- "type": "FIELD",
974
- "name": "comment",
975
- "content": {
976
- "type": "CHOICE",
977
- "members": [
978
- {
979
- "type": "SYMBOL",
980
- "name": "comment"
981
- },
982
- {
983
- "type": "BLANK"
984
- }
985
- ]
986
- }
987
- },
988
- {
989
- "type": "SYMBOL",
990
- "name": "_eol"
991
- }
992
- ]
993
- },
994
- {
995
- "type": "SEQ",
996
- "members": [
997
- {
998
- "type": "SYMBOL",
999
- "name": "_indent"
1000
- },
1001
- {
1002
- "type": "FIELD",
1003
- "name": "optflag",
1004
- "content": {
1005
- "type": "CHOICE",
1006
- "members": [
1007
- {
1008
- "type": "SYMBOL",
1009
- "name": "optflag"
1010
- },
1011
- {
1012
- "type": "BLANK"
1013
- }
1014
- ]
1015
- }
1016
- },
1017
- {
1018
- "type": "FIELD",
1019
- "name": "account",
1020
- "content": {
1021
- "type": "SYMBOL",
1022
- "name": "account"
1023
- }
1024
- },
1025
- {
1026
- "type": "FIELD",
1027
- "name": "amount",
1028
- "content": {
1029
- "type": "CHOICE",
1030
- "members": [
1031
- {
1032
- "type": "SYMBOL",
1033
- "name": "incomplete_amount"
1034
- },
1035
- {
1036
- "type": "BLANK"
1037
- }
1038
- ]
1039
- }
1040
- },
1041
- {
1042
- "type": "FIELD",
1043
- "name": "comment",
1044
- "content": {
1045
- "type": "CHOICE",
1046
- "members": [
1047
- {
1048
- "type": "SYMBOL",
1049
- "name": "comment"
1050
- },
1051
- {
1052
- "type": "BLANK"
1053
- }
1054
- ]
1055
- }
1056
- },
1057
- {
1058
- "type": "SYMBOL",
1059
- "name": "_eol"
1060
- }
1061
- ]
826
+ "type": "SYMBOL",
827
+ "name": "_eol"
1062
828
  }
1063
829
  ]
1064
830
  },
@@ -1174,6 +940,27 @@
1174
940
  "name": "_key_value_line"
1175
941
  }
1176
942
  ]
943
+ },
944
+ {
945
+ "type": "SEQ",
946
+ "members": [
947
+ {
948
+ "type": "SYMBOL",
949
+ "name": "_indent"
950
+ },
951
+ {
952
+ "type": "FIELD",
953
+ "name": "comment",
954
+ "content": {
955
+ "type": "SYMBOL",
956
+ "name": "comment"
957
+ }
958
+ },
959
+ {
960
+ "type": "SYMBOL",
961
+ "name": "_eol"
962
+ }
963
+ ]
1177
964
  }
1178
965
  ]
1179
966
  }
@@ -1920,6 +1707,22 @@
1920
1707
  "name": "amount"
1921
1708
  }
1922
1709
  },
1710
+ {
1711
+ "type": "FIELD",
1712
+ "name": "comment",
1713
+ "content": {
1714
+ "type": "CHOICE",
1715
+ "members": [
1716
+ {
1717
+ "type": "SYMBOL",
1718
+ "name": "comment"
1719
+ },
1720
+ {
1721
+ "type": "BLANK"
1722
+ }
1723
+ ]
1724
+ }
1725
+ },
1923
1726
  {
1924
1727
  "type": "SYMBOL",
1925
1728
  "name": "_eol"
@@ -1969,6 +1772,22 @@
1969
1772
  "name": "string"
1970
1773
  }
1971
1774
  },
1775
+ {
1776
+ "type": "FIELD",
1777
+ "name": "comment",
1778
+ "content": {
1779
+ "type": "CHOICE",
1780
+ "members": [
1781
+ {
1782
+ "type": "SYMBOL",
1783
+ "name": "comment"
1784
+ },
1785
+ {
1786
+ "type": "BLANK"
1787
+ }
1788
+ ]
1789
+ }
1790
+ },
1972
1791
  {
1973
1792
  "type": "SYMBOL",
1974
1793
  "name": "_eol"
@@ -2018,6 +1837,22 @@
2018
1837
  "name": "string"
2019
1838
  }
2020
1839
  },
1840
+ {
1841
+ "type": "FIELD",
1842
+ "name": "comment",
1843
+ "content": {
1844
+ "type": "CHOICE",
1845
+ "members": [
1846
+ {
1847
+ "type": "SYMBOL",
1848
+ "name": "comment"
1849
+ },
1850
+ {
1851
+ "type": "BLANK"
1852
+ }
1853
+ ]
1854
+ }
1855
+ },
2021
1856
  {
2022
1857
  "type": "SYMBOL",
2023
1858
  "name": "_eol"
@@ -2067,6 +1902,22 @@
2067
1902
  "name": "string"
2068
1903
  }
2069
1904
  },
1905
+ {
1906
+ "type": "FIELD",
1907
+ "name": "comment",
1908
+ "content": {
1909
+ "type": "CHOICE",
1910
+ "members": [
1911
+ {
1912
+ "type": "SYMBOL",
1913
+ "name": "comment"
1914
+ },
1915
+ {
1916
+ "type": "BLANK"
1917
+ }
1918
+ ]
1919
+ }
1920
+ },
2070
1921
  {
2071
1922
  "type": "SYMBOL",
2072
1923
  "name": "_eol"
@@ -2136,6 +1987,22 @@
2136
1987
  ]
2137
1988
  }
2138
1989
  },
1990
+ {
1991
+ "type": "FIELD",
1992
+ "name": "comment",
1993
+ "content": {
1994
+ "type": "CHOICE",
1995
+ "members": [
1996
+ {
1997
+ "type": "SYMBOL",
1998
+ "name": "comment"
1999
+ },
2000
+ {
2001
+ "type": "BLANK"
2002
+ }
2003
+ ]
2004
+ }
2005
+ },
2139
2006
  {
2140
2007
  "type": "SYMBOL",
2141
2008
  "name": "_eol"
@@ -2225,6 +2092,22 @@
2225
2092
  ]
2226
2093
  }
2227
2094
  },
2095
+ {
2096
+ "type": "FIELD",
2097
+ "name": "comment",
2098
+ "content": {
2099
+ "type": "CHOICE",
2100
+ "members": [
2101
+ {
2102
+ "type": "SYMBOL",
2103
+ "name": "comment"
2104
+ },
2105
+ {
2106
+ "type": "BLANK"
2107
+ }
2108
+ ]
2109
+ }
2110
+ },
2228
2111
  {
2229
2112
  "type": "SYMBOL",
2230
2113
  "name": "_eol"
@@ -2436,17 +2319,20 @@
2436
2319
  ]
2437
2320
  },
2438
2321
  "comment": {
2439
- "type": "SEQ",
2440
- "members": [
2441
- {
2442
- "type": "STRING",
2443
- "value": ";"
2444
- },
2445
- {
2446
- "type": "PATTERN",
2447
- "value": ".*"
2448
- }
2449
- ]
2322
+ "type": "TOKEN",
2323
+ "content": {
2324
+ "type": "SEQ",
2325
+ "members": [
2326
+ {
2327
+ "type": "STRING",
2328
+ "value": ";"
2329
+ },
2330
+ {
2331
+ "type": "PATTERN",
2332
+ "value": "[^\\r\\n]*"
2333
+ }
2334
+ ]
2335
+ }
2450
2336
  },
2451
2337
  "identifier": {
2452
2338
  "type": "PATTERN",
@@ -2464,7 +2350,7 @@
2464
2350
  },
2465
2351
  {
2466
2352
  "type": "PATTERN",
2467
- "value": ".*"
2353
+ "value": "[^\\r\\n]*"
2468
2354
  },
2469
2355
  {
2470
2356
  "type": "SYMBOL",
@@ -2481,7 +2367,7 @@
2481
2367
  },
2482
2368
  {
2483
2369
  "type": "PATTERN",
2484
- "value": ".*"
2370
+ "value": "[^\\r\\n]*"
2485
2371
  },
2486
2372
  {
2487
2373
  "type": "SYMBOL",
@@ -2507,182 +2393,6 @@
2507
2393
  ]
2508
2394
  }
2509
2395
  ]
2510
- },
2511
- "_ASCII": {
2512
- "type": "PATTERN",
2513
- "value": "[\\x00-\\x7f]"
2514
- },
2515
- "_UTF_8_1": {
2516
- "type": "PATTERN",
2517
- "value": "[\\x80-\\xbf]"
2518
- },
2519
- "_UTF_8_2": {
2520
- "type": "SEQ",
2521
- "members": [
2522
- {
2523
- "type": "PATTERN",
2524
- "value": "[\\xc2-\\xdf]"
2525
- },
2526
- {
2527
- "type": "SYMBOL",
2528
- "name": "_UTF_8_1"
2529
- }
2530
- ]
2531
- },
2532
- "_UTF_8_3": {
2533
- "type": "CHOICE",
2534
- "members": [
2535
- {
2536
- "type": "SEQ",
2537
- "members": [
2538
- {
2539
- "type": "PATTERN",
2540
- "value": "\\xe0[\\xa0-\\xbf]"
2541
- },
2542
- {
2543
- "type": "SYMBOL",
2544
- "name": "_UTF_8_1"
2545
- }
2546
- ]
2547
- },
2548
- {
2549
- "type": "SEQ",
2550
- "members": [
2551
- {
2552
- "type": "PATTERN",
2553
- "value": "[\\xe1-\\xec]"
2554
- },
2555
- {
2556
- "type": "SYMBOL",
2557
- "name": "_UTF_8_1"
2558
- },
2559
- {
2560
- "type": "SYMBOL",
2561
- "name": "_UTF_8_1"
2562
- }
2563
- ]
2564
- },
2565
- {
2566
- "type": "SEQ",
2567
- "members": [
2568
- {
2569
- "type": "PATTERN",
2570
- "value": "\\xed[\\x80-\\x9f]"
2571
- },
2572
- {
2573
- "type": "SYMBOL",
2574
- "name": "_UTF_8_1"
2575
- }
2576
- ]
2577
- },
2578
- {
2579
- "type": "SEQ",
2580
- "members": [
2581
- {
2582
- "type": "PATTERN",
2583
- "value": "[\\xee-\\xef]"
2584
- },
2585
- {
2586
- "type": "SYMBOL",
2587
- "name": "_UTF_8_1"
2588
- },
2589
- {
2590
- "type": "SYMBOL",
2591
- "name": "_UTF_8_1"
2592
- }
2593
- ]
2594
- }
2595
- ]
2596
- },
2597
- "_UTF_8_4": {
2598
- "type": "CHOICE",
2599
- "members": [
2600
- {
2601
- "type": "SEQ",
2602
- "members": [
2603
- {
2604
- "type": "PATTERN",
2605
- "value": "\\xf0[\\x90-\\xbf]"
2606
- },
2607
- {
2608
- "type": "SYMBOL",
2609
- "name": "_UTF_8_1"
2610
- },
2611
- {
2612
- "type": "SYMBOL",
2613
- "name": "_UTF_8_1"
2614
- }
2615
- ]
2616
- },
2617
- {
2618
- "type": "SEQ",
2619
- "members": [
2620
- {
2621
- "type": "PATTERN",
2622
- "value": "[\\xf1-\\xf3]"
2623
- },
2624
- {
2625
- "type": "SYMBOL",
2626
- "name": "_UTF_8_1"
2627
- },
2628
- {
2629
- "type": "SYMBOL",
2630
- "name": "_UTF_8_1"
2631
- },
2632
- {
2633
- "type": "SYMBOL",
2634
- "name": "_UTF_8_1"
2635
- }
2636
- ]
2637
- },
2638
- {
2639
- "type": "SEQ",
2640
- "members": [
2641
- {
2642
- "type": "PATTERN",
2643
- "value": "\\xf4[\\x80-\\x8f]"
2644
- },
2645
- {
2646
- "type": "SYMBOL",
2647
- "name": "_UTF_8_1"
2648
- },
2649
- {
2650
- "type": "SYMBOL",
2651
- "name": "_UTF_8_1"
2652
- }
2653
- ]
2654
- }
2655
- ]
2656
- },
2657
- "_UTF_8_ONLY": {
2658
- "type": "CHOICE",
2659
- "members": [
2660
- {
2661
- "type": "SYMBOL",
2662
- "name": "_UTF_8_2"
2663
- },
2664
- {
2665
- "type": "SYMBOL",
2666
- "name": "_UTF_8_3"
2667
- },
2668
- {
2669
- "type": "SYMBOL",
2670
- "name": "_UTF_8_4"
2671
- }
2672
- ]
2673
- },
2674
- "_UTF_8": {
2675
- "type": "CHOICE",
2676
- "members": [
2677
- {
2678
- "type": "SYMBOL",
2679
- "name": "_ASCII"
2680
- },
2681
- {
2682
- "type": "SYMBOL",
2683
- "name": "_UTF_8_ONLY"
2684
- }
2685
- ]
2686
2396
  }
2687
2397
  },
2688
2398
  "extras": [
@@ -2711,6 +2421,6 @@
2711
2421
  "supertypes": [
2712
2422
  "_entry",
2713
2423
  "_directive"
2714
- ]
2715
- }
2716
-
2424
+ ],
2425
+ "reserved": {}
2426
+ }