Langium stuff
This commit is contained in:
parent
57440fb01f
commit
f74cd5b99f
2 changed files with 3 additions and 8 deletions
|
@ -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
|
||||
"}"
|
||||
"}"
|
||||
;
|
||||
"}";
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
|
||||
|
||||
|
||||
|
||||
proposal (async) {
|
||||
applicable to {
|
||||
let _$_a_$_ = await _$_expr_$_();
|
||||
|
|
Loading…
Reference in a new issue