Langium stuff

This commit is contained in:
Rolf Martin Glomsrud 2023-12-06 17:34:00 +01:00
parent 57440fb01f
commit f74cd5b99f
2 changed files with 3 additions and 8 deletions

View file

@ -1,19 +1,18 @@
grammar JsTransformLang
terminal PROPOSALNAME: /[(][_a-zA-Z][\w]*[)]/;
terminal PROPOSALNAME: /[_a-zA-Z]+/;
terminal STRING: /"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/;
entry Model:
(proposals+=Proposal);
Proposal:
"proposal" proposalName=PROPOSALNAME "{"
"proposal" "(" proposalName=PROPOSALNAME ")" "{"
"applicable" "to" "{"
code=STRING
"}"
"replace" "with" "{"
code=STRING
"}"
"}"
;
"}";

View file

@ -1,7 +1,3 @@
proposal (async) {
applicable to {
let _$_a_$_ = await _$_expr_$_();