Skip to content

Scope provider requiring other (resolved) references #401

Answered by goto40
goto40 asked this question in Q&A
Discussion options

You must be logged in to vote

I updated to 0.3.0: Now, it seems to work (it resolves the references).
However, I do not get auto-completion for the custom scope provider (I did not investigate).

Thank you.

Notes: grammar and major changes:

grammar HelloWorld

entry Model: packages+=Pack*;
Pack: 'package' name=ID '{' 
    (class+=Class | instances+=Instance | calls+=Call)* 
    '}';
Class: 'class' name=ID "{" defs+=Def* "}";
Def: 'def' name=ID;
Instance: 'instance' name=ID ':' type=[Class:FQN];
Call: 'call' instance=[Instance:FQN] '->' methodref=[Def];

FQN returns string hidden(): ID ('.' ID)*;

hidden terminal WS: /\s+/;
terminal ID: /[_a-zA-Z][\w_]*/;

hidden terminal ML_COMMENT: /\/\*[\s\S]*?\*\//;
hidden terminal …

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@goto40
Comment options

@spoenemann
Comment options

@goto40
Comment options

Comment options

You must be logged in to vote
3 replies
@spoenemann
Comment options

@msujew
Comment options

@goto40
Comment options

Answer selected by goto40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants