-
|
@tomtau I am a new beginner on pest parser and really appreciate you and your team provide such a wonderful tool called "pest" |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
@jbmwdzg did you see this parser: https://github.com/thomas9911/python_parser/blob/master/src/grammar.pest ? |
Beta Was this translation helpful? Give feedback.
-
|
@tomtau Thanks for your quick response. After carefully understanding the sample grammar you shared, may I think that to parse the indentation-sensitive language such as python, we should not difine the WHITESPACE rule with WHITESPACE =_{" " |"\t"}, since seen from the codes within the sample, it is to take controle the newline and whitespace explicitly? also, for function defintion in your sample, if there is space between "functionname " and "arguments". will it fail to parse the rule "function"? |
Beta Was this translation helpful? Give feedback.
-
|
got it, thanks. will continue focus on the answer. |
Beta Was this translation helpful? Give feedback.
@jbmwdzg did you see this parser: https://github.com/thomas9911/python_parser/blob/master/src/grammar.pest ?