Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PKTreeAssembler #25

Open
mhakman opened this issue Oct 11, 2013 · 1 comment
Open

PKTreeAssembler #25

mhakman opened this issue Oct 11, 2013 · 1 comment

Comments

@mhakman
Copy link

mhakman commented Oct 11, 2013

I'm trying to use your PKTreeAssembler. Yes, I know it is in the test package, not in the framework but I still need it. It is sufficiently complex so I refrain from writing one myself. I have it working (after few changes for ARC) but the returned PKParseTree contains only rule nodes and no tokens at all. I have tried to debug it - it seems OK. It seems to add PKToken nodes to the tree. Somehow they disappear from the returned tree. What could be wrong? Thanks.

/Mikael

@mhakman
Copy link
Author

mhakman commented Oct 12, 2013

I did some more research. It seems that I get or not the terminal tokens depending on the grammar. Following grammar works OK:

@start = stmts;
 stmts = stmt+;     
 stmt  = expr ';';  
 expr  = Word+;

But not this one:

@start = stmt+;
 stmt  = expr ';';  
 expr  = Word+;

Perhaps one has to have only one simple rule name in the @start directive.

Thanks/Mikael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant