Langium stuff

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

View file

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

View file

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