Skip to content

Commit

Permalink
fix variable name
Browse files Browse the repository at this point in the history
this shouldn't be necessary; bug in simpleEvaluate. sigh
  • Loading branch information
vilterp committed Feb 1, 2022
1 parent 115a0e8 commit c95bd72
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions apps/languageWorkbench/examples/grammar/language.dl
@@ -1,10 +1,16 @@
scope.Scope{id: "global", label: "global"}.

scope.Defn{scopeID: "global", span: S, name: N, kind: "rule"} :-
ast.ruleDefn{id: I} &
ast.ident{parentID: I, span: S, text: N}.
scope.Defn{scopeID: I, span: S, name: N, kind: K} :-
scope.someDefn{scopeID: I, span: S, name: N, kind: K}.

scope.Var{scopeID: "global", name: N, span: S, kind: "rule"} :-
scope.someDefn{scopeID: "global", span: S, name: N, kind: "rule"} :-
ast.ruleDefn{id: RuleID} &
ast.ident{parentID: RuleID, span: S, text: N}.

scope.Var{scopeID: I, name: N, span: S, kind: K} :-
scope.someVar{scopeID: I, name: N, span: S, kind: K}.

scope.someVar{scopeID: "global", name: N, span: S, kind: "rule"} :-
ast.ref{span: S, text: N}.

# scope.Placeholder{scopeID: I, span: S, kind: K} :-
Expand Down

0 comments on commit c95bd72

Please sign in to comment.