Commit Graph

47 Commits

Author SHA1 Message Date
maunzCache
3a58dc8928 fix: align project with upstream layout 2025-04-13 18:22:57 +02:00
Michael Hoffmann
0ff887f2a6 wip: add dialects 2022-12-03 09:43:39 +01:00
Michael Hoffmann
6b74f88b3d fix: template expression precedence 2022-12-02 21:24:38 +01:00
Michael Hoffmann
a87b709739 fix: allow empty string literals 2022-06-02 20:12:15 +02:00
mhoffm
5c348bd23c fix grammar 2021-09-20 21:45:17 +02:00
mhoffm
c0513ba689 add template for directives 2021-09-19 12:00:18 +02:00
mhoffm
735c57ad9c generate parser; add todos for template directives 2021-09-15 22:03:00 +02:00
Yoann Padioleau
ae8b07cc3e remove template_directive for ocaml-tree-sitter-semgrep to compile 2021-09-15 22:01:20 +02:00
mhoffm
7a12dfe711 make object, block and tuple delimiters visible 2021-07-04 12:42:29 +02:00
mhoffm
380571cc1a * add field names to object elements
* dont hide template interpolation start/end and quoted template start/end tokens
2021-07-02 08:34:28 +02:00
mhoffm
6c5f3eba28 allow empty templates and template interpolations 2021-06-27 13:54:05 +02:00
mhoffm
edac6a2beb handle identifiers better 2021-06-27 12:22:06 +02:00
mhoffm
0ae2fffe6d fix ending heredoc identifiers must be on single line 2021-06-26 11:11:34 +02:00
mhoffm
5a58000ba1 WIP add heredoc templates; only EOF marker at the moment 2021-06-21 22:04:28 +02:00
mhoffm
d57a44c2c3 handle string_literal and quoted_template conflict with precedences 2021-06-21 21:08:51 +02:00
mhoffm
a496ca0823 minor cleanup 2021-06-21 21:04:46 +02:00
mhoffm
a7f23cc579 more real world exampls; fix scanner when scanning empty character in lexer 2021-06-21 19:40:27 +02:00
mhoffm
22d0a7253c simplify whitespace handling; support hexadecimal numeric literals; allow empty configs 2021-06-20 00:03:58 +02:00
mhoffm
b1c3109853 fix operations; add one line blocks 2021-06-19 21:01:03 +02:00
mhoffm
d61fefced0 fix binary operators 2021-06-19 18:10:47 +02:00
mhoffm
5f7a5b5e98 add real world test corpus; work on some parse errors and weirdnesses 2021-06-19 16:56:35 +02:00
mhoffm
9b79cbda48 add precedence to splat operators; test for associativity 2021-06-18 07:29:00 +02:00
mhoffm
b793cd7c37 simplify object elements 2021-06-18 07:20:55 +02:00
mhoffm
f4b4b4f026 add precedence to conditionals; add test for conditional associativity 2021-06-18 07:17:21 +02:00
mhoffm
88401e3bf3 fmt tests; properly define string literals; work on scanner 2021-06-17 23:47:14 +02:00
mhoffm
548f6d789e cleanup 2021-06-14 23:38:56 +02:00
mhoffm
01a4a981da fix string literals; trim trailing whitespace 2021-06-14 23:33:28 +02:00
mhoffm
7b91d51683 handle quoted template expressions and template interpolations 2021-06-14 23:11:17 +02:00
mhoffm
3c984653bb add template_expr to grammar; comment it out for now 2021-06-13 14:31:46 +02:00
mhoffm
a70fcb8e9f cleanup 2021-06-13 09:33:34 +02:00
mhoffm
3bba72f836 add operation expressions 2021-06-13 09:17:52 +02:00
mhoffm
52247dee63 properly handle escape sequences in string literals 2021-06-12 22:36:10 +02:00
mhoffm
22b921f405 add conditionals 2021-06-12 21:47:30 +02:00
mhoffm
0b8859a794 minor cleanup 2021-06-12 21:21:35 +02:00
mhoffm
94b188039a add ellipsis token 2021-06-11 23:57:34 +02:00
mhoffm
4db49a13f5 add function name 2021-06-11 23:41:02 +02:00
mhoffm
2226687dd7 more tests; add function expressions 2021-06-11 23:32:22 +02:00
mhoffm
6da374befd more tests 2021-06-08 23:31:40 +02:00
mhoffm
4a0db3b31c add for expressions 2021-06-08 22:32:42 +02:00
mhoffm
49fe1f15c1 add splat expressions 2021-06-08 18:50:12 +02:00
mhoffm
17de5b425a wip 2021-06-08 01:28:18 +02:00
mhoffm
dae5dc8248 add field name to block to highlight its name 2021-06-08 01:08:07 +02:00
mhoffm
c4bfe1228f cleanup 2021-06-08 00:45:23 +02:00
mhoffm
06cff26e7a cleanup 2021-06-08 00:12:25 +02:00
mhoffm
fdb45d9ddd add collections; improve identifier 2021-06-08 00:04:05 +02:00
mhoffm
e67d183d71 fix numeric literals 2021-06-07 22:32:14 +02:00
mhoffm
ba9acb912f initial commit 2021-06-07 20:50:00 +02:00