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

extends should be ast.Identifier not LexerIdentifier #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alingse
Copy link

@alingse alingse commented Aug 24, 2020

when use ptsd

f = open('./tutorial/tutorial.thrift', 'r')                                                                               
tree = Parser().parse(f.read())
print(tree)

to parse apache tutorial thrift https://github.com/apache/thrift/tree/master/tutorial it will print

service Calculator extends <ptsd.lexer.Identifier object at 0x1080d2eb0> {
  void ping()
  ...
}

service.extends is still a LexerIdentifier, not a ast.Identifier (yes, no need to add a Extends Node)

@alingse
Copy link
Author

alingse commented Sep 8, 2020

@wickman

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

Successfully merging this pull request may close these issues.

1 participant