--
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/1f98df13-9da7-449d-a5bf-94b854332b70%40googlegroups.com.
Thanks Eric for your reply! Actually I just pasted part of our definition. We can handle recursive functions, just if there are too many (more than 8), it takes several minutes to parse. We also have a Java version parser, which can deal with this easily.
Do you have any recommendations about how to write a G4 to make JavaScript parser work? We can just use abs for an example. Thanks!
On Fri, Sep 27, 2019, 1:58 AM eric vergnaud <ad...@prompto.cloud> wrote:
At first glance, your grammar is not able to deal with abs(1)--Maybe this influences the performance significantly
Le vendredi 27 septembre 2019 08:38:04 UTC+8, ML a écrit :We found bad performance issue to parse expressions like abs(abs(abs(abs(abs(abs(abs(abs(abs(1))))))))) (This is just an example, we are dealing with more complex expressions)Sample G4:expression:'(' expression ')' #Scope| function #FunctionExpr;function: basicName '(' (expression (',' expression)*)? ')';The issue is like https://groups.google.com/forum/#!search/antlr$204$20javascript$20performance/antlr-discussion/Giy2KHEeXgM/6TGuF4nNEAAJ, but I didn't see a solution for that.How to solve this kind of issue? And to let Javascript parse recursive patterns efficiently, what's the best practice?Thanks!
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-di...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/f3fe98be-6815-478d-9cce-3f5a696d2c6d%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/CAOnVP8ydV%3D3ZGG_vEjN%3D_v1wZ_6zGgJg249nZzPasiYO6E801Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/f3fe98be-6815-478d-9cce-3f5a696d2c6d%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/76d2b8b1-fe39-40ed-8a9d-d7139fa4f254%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/76d2b8b1-fe39-40ed-8a9d-d7139fa4f254%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/b6ca5813-da01-41f7-8b82-b6340057ba87%40googlegroups.com.