Ken Domino
Ken Domino
Could you write the entire input line that is parse for the Snowflake query you are describing in these trees? Your pictures are chopped. I can't reverse engineer the query....
I think you are trying to find the "expr[COLON]" nodes in the tree. For example, ``` $ trparse -i 'select coalesce(A:B, -1) from table_example' | trxgrep ' //function_call/expr_list/expr[COLON]' | trtree...
> Thanks @kaby76 , I will try this. By the way, are there any tools you recommend besides Antlr? There are other parser generators but parser generators are a dime...
> > it seems like this code caused : > > ```antlr > > // https://docs.oracle.com/cd/E11882_01/server.112/e16604/ch_twelve034.htm#SQPUG054 > > REMARK_COMMENT: 'REM' {this.IsNewlineAtPos(-4)}? 'ARK'? (' ' ~('\r' | '\n')*)? NEWLINE_EOF -> channel(HIDDEN);...
I think the problem here is that REMARK and PROMPT should be considered commands. They're not really comments. So, I think you're right, the rules should not be there in...
> I would expect that the ANTLR parser shouldn't output illegal VBA code Please be precise. Antlr does not "output illegal VBA code." The job of Antlr is to parse...
> I thought the parser should be able to parse and emit only valid language and otherwise create an error. Parsers do not emit code! A parser is a function...
> The parser for VBA will accept code with too long lines, correct? Return true even if the line is longer then 1023 chars Yes, you are right. The parser...
tiny-python was removed because there are too many Python grammars to support. And the "tiny" grammars had a number of issues. * There were not one, but two "tiny" grammars....
> Well the problem was that when I ran make tests it failed because it was looking for that directly so I had to add it back in to get...