Commit c8028a4
committed
Improve grammar and fix parser bugs
Ports many of the fixes previously introduced in
#8
1. Add support for else body in when generator
2. Remove legacy syntax in for and when generators
3. Add support for shebang comments
4. Add field names to various nodes throughout the grammar
5. Add missing "module" type1 parent 998a296 commit c8028a4
File tree
9 files changed
+45982
-53708
lines changed- queries
- src
- test/corpus
- basic
- object
9 files changed
+45982
-53708
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| 109 | + | |
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
113 | 120 | | |
114 | 121 | | |
115 | 122 | | |
| |||
257 | 264 | | |
258 | 265 | | |
259 | 266 | | |
260 | | - | |
| 267 | + | |
261 | 268 | | |
262 | 269 | | |
263 | | - | |
| 270 | + | |
264 | 271 | | |
265 | 272 | | |
266 | 273 | | |
| |||
269 | 276 | | |
270 | 277 | | |
271 | 278 | | |
272 | | - | |
| 279 | + | |
273 | 280 | | |
274 | 281 | | |
275 | | - | |
| 282 | + | |
276 | 283 | | |
277 | 284 | | |
278 | 285 | | |
| |||
288 | 295 | | |
289 | 296 | | |
290 | 297 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
| 298 | + | |
295 | 299 | | |
296 | 300 | | |
297 | 301 | | |
298 | 302 | | |
299 | 303 | | |
300 | | - | |
| 304 | + | |
301 | 305 | | |
302 | | - | |
303 | | - | |
304 | | - | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
305 | 312 | | |
306 | 313 | | |
307 | 314 | | |
| |||
323 | 330 | | |
324 | 331 | | |
325 | 332 | | |
| 333 | + | |
326 | 334 | | |
327 | 335 | | |
328 | 336 | | |
| |||
703 | 711 | | |
704 | 712 | | |
705 | 713 | | |
706 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
707 | 724 | | |
708 | 725 | | |
709 | 726 | | |
710 | | - | |
| 727 | + | |
711 | 728 | | |
712 | 729 | | |
713 | 730 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | | - | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
8 | 20 | | |
9 | 21 | | |
10 | 22 | | |
| |||
42 | 54 | | |
43 | 55 | | |
44 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
45 | 70 | | |
46 | 71 | | |
47 | 72 | | |
| |||
779 | 804 | | |
780 | 805 | | |
781 | 806 | | |
782 | | - | |
783 | | - | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
784 | 813 | | |
785 | 814 | | |
786 | 815 | | |
| |||
797 | 826 | | |
798 | 827 | | |
799 | 828 | | |
800 | | - | |
801 | | - | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
802 | 835 | | |
803 | 836 | | |
804 | 837 | | |
| |||
834 | 867 | | |
835 | 868 | | |
836 | 869 | | |
837 | | - | |
838 | | - | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
839 | 876 | | |
840 | 877 | | |
841 | 878 | | |
| |||
852 | 889 | | |
853 | 890 | | |
854 | 891 | | |
855 | | - | |
856 | | - | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
857 | 898 | | |
858 | 899 | | |
859 | 900 | | |
| |||
917 | 958 | | |
918 | 959 | | |
919 | 960 | | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
| 961 | + | |
| 962 | + | |
931 | 963 | | |
932 | 964 | | |
933 | 965 | | |
| |||
943 | 975 | | |
944 | 976 | | |
945 | 977 | | |
946 | | - | |
947 | | - | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
948 | 984 | | |
949 | 985 | | |
950 | 986 | | |
951 | 987 | | |
952 | 988 | | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
953 | 997 | | |
954 | 998 | | |
955 | 999 | | |
956 | 1000 | | |
957 | | - | |
958 | | - | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
959 | 1016 | | |
960 | 1017 | | |
961 | | - | |
962 | | - | |
| 1018 | + | |
963 | 1019 | | |
964 | 1020 | | |
965 | 1021 | | |
| |||
1045 | 1101 | | |
1046 | 1102 | | |
1047 | 1103 | | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
1048 | 1108 | | |
1049 | 1109 | | |
1050 | 1110 | | |
| |||
3087 | 3147 | | |
3088 | 3148 | | |
3089 | 3149 | | |
3090 | | - | |
3091 | | - | |
3092 | | - | |
3093 | | - | |
3094 | | - | |
3095 | | - | |
3096 | | - | |
3097 | | - | |
3098 | | - | |
3099 | | - | |
3100 | | - | |
| 3150 | + | |
| 3151 | + | |
| 3152 | + | |
| 3153 | + | |
| 3154 | + | |
| 3155 | + | |
| 3156 | + | |
| 3157 | + | |
| 3158 | + | |
| 3159 | + | |
| 3160 | + | |
| 3161 | + | |
| 3162 | + | |
| 3163 | + | |
| 3164 | + | |
3101 | 3165 | | |
3102 | 3166 | | |
3103 | 3167 | | |
| |||
3168 | 3232 | | |
3169 | 3233 | | |
3170 | 3234 | | |
3171 | | - | |
3172 | | - | |
3173 | | - | |
3174 | | - | |
3175 | | - | |
3176 | | - | |
3177 | | - | |
3178 | | - | |
3179 | | - | |
3180 | | - | |
3181 | | - | |
| 3235 | + | |
| 3236 | + | |
| 3237 | + | |
| 3238 | + | |
| 3239 | + | |
| 3240 | + | |
| 3241 | + | |
| 3242 | + | |
| 3243 | + | |
| 3244 | + | |
| 3245 | + | |
| 3246 | + | |
| 3247 | + | |
| 3248 | + | |
| 3249 | + | |
3182 | 3250 | | |
3183 | 3251 | | |
3184 | 3252 | | |
| |||
4065 | 4133 | | |
4066 | 4134 | | |
4067 | 4135 | | |
| 4136 | + | |
| 4137 | + | |
| 4138 | + | |
| 4139 | + | |
4068 | 4140 | | |
4069 | 4141 | | |
4070 | 4142 | | |
| |||
0 commit comments