ptsd icon indicating copy to clipboard operation
ptsd copied to clipboard

extends should be ast.Identifier not LexerIdentifier

Open alingse opened this issue 4 years ago • 1 comments

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 avatar Aug 24 '20 15:08 alingse

@wickman

alingse avatar Sep 08 '20 02:09 alingse