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
|
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
|
||||||
"}"
|
"}"
|
||||||
"}"
|
"}";
|
||||||
;
|
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
proposal (async) {
|
proposal (async) {
|
||||||
applicable to {
|
applicable to {
|
||||||
let _$_a_$_ = await _$_expr_$_();
|
let _$_a_$_ = await _$_expr_$_();
|
||||||
|
|
Loading…
Reference in a new issue