Paula Păstrăguș's activity
From 04/17/2026 to 05/16/2026
05/07/2026
- 09:12 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- To be more specific, I reached a point where the conversion now generates all expected files, including the converted...
- 04:36 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- *Update*: @ant convert@ is now taking around *56* seconds to complete. This means the ANTLR4 based implementation is ...
05/04/2026
- 10:06 AM Runtime Infrastructure Feature #10451 (Review): GUI interaction event logging
- Addressed code review as rev *16523*.
04/30/2026
- 08:53 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- *Update*: The AST produced for the @fwd-embedded-driver.p@ file now has the same structure. Next, I'll also verify th...
04/29/2026
- 06:59 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- *Update*: I compared the ASTs generated by ANTLR2 and ANTLR4 for @fwd-embedded-driver.p@ (full file, without commenti...
04/27/2026
- 10:17 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- I managed to get @ant convert@ to run successfully and produce a @.ast@ file. The build now completes, which is a sol...
04/24/2026
- 09:57 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- *Update*: Using *SLL* prediction mode together with @reserved_keywords@ and @unreserved_keywords@, the @fwd-embedded-...
04/23/2026
- 10:25 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- I'll try an approach based on a semantic predicate, something like @{ someMethodThatChangesTokenType() }?@. The idea ...
- 05:07 AM Runtime Infrastructure Feature #10451 (Review): GUI interaction event logging
- Addressed code review as rev *16522*. I also added the one time warning.
Hynek, please review. Thanks!
04/22/2026
- 08:37 AM Conversion Tools Feature #1757: update ANTLR to latest version
- For further profiling I'll use YourKit profiler.
- 08:35 AM Conversion Tools Feature #1757: update ANTLR to latest version
- Paula Păstrăguș wrote:
> Paula Păstrăguș wrote:
> > Tokens generation time: @873586@ ns = 0.000873586 seconds. The ... - 08:31 AM Conversion Tools Feature #1757: update ANTLR to latest version
- ...
- 08:20 AM Conversion Tools Feature #1757: update ANTLR to latest version
- I only measured @tokens.fill()@, which generates all the tokens.
- 08:11 AM Conversion Tools Feature #1757: update ANTLR to latest version
- Paula Păstrăguș wrote:
> Tokens generation time: @873586@ ns = 0.000873586 seconds. The lexer is clearly not the iss... - 07:59 AM Conversion Tools Feature #1757: update ANTLR to latest version
- Tokens generation time: @873586@ ns = 0.000873586 seconds. The lexer is clearly not the issue.
- 07:53 AM Conversion Tools Feature #1757: update ANTLR to latest version
- As for the SLL lookahead, I wouldn't worry about the larger numbers, they represent the total lookahead across all in...
- 07:50 AM Conversion Tools Feature #1757: update ANTLR to latest version
- I'm also reminded of Sam's advice from some forum: "Do not assume the lexer is fast." It might be worth profiling the...
- 07:48 AM Conversion Tools Feature #1757: update ANTLR to latest version
- Yes, it helped a bit.
I enabled ANTLR4 profiling to see how much time is spent in each parser decision:
{{colla... - 04:45 AM Runtime Infrastructure Feature #10451: GUI interaction event logging
- Maybe we can exclude password fill-ins from logging. There is a place in counteract where users actually enter passwo...
- 04:40 AM Runtime Infrastructure Feature #10451: GUI interaction event logging
- From my POV, this feature is meant strictly for a testing environment, not for production use. Still, you raise a fai...
04/21/2026
- 08:58 AM Conversion Tools Feature #1757: update ANTLR to latest version
- Paula Păstrăguș wrote:
> Sure, I'm currently measuring the parsing time of @standard.df@ using ANTLR4 and comparing ... - 08:28 AM Conversion Tools Feature #1757: update ANTLR to latest version
- Also, there is an optimized fork of ANTLR4 available here: https://github.com/tunnelvisionlabs/antlr4/blob/master/doc...
- 08:16 AM Conversion Tools Feature #1757: update ANTLR to latest version
- Sure, I'm currently measuring the parsing time of @standard.df@ using ANTLR4 and comparing it with the old ANTLR2 imp...
- 07:43 AM Conversion Tools Feature #1757: update ANTLR to latest version
- I will continue the discussion here. For context, previous relevant notes include #10804-218, #10804-220, #10804-221.
- 08:21 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- I've just identified the issue with my latest commit. I think, due to the build.gradle, the @*TokenTypes.java@ files ...
- 07:35 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- Greg Shah wrote:
> *Unfortunately, I don't think we can disable @ALL(*)@ completely and move back to @LL(k)@ in ANTL... - 05:58 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- Greg Shah wrote:
> I think we need more helper methods (outside of the parser) to reduce code like this (from @func_... - 05:52 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- Here is a breakdown of how @SLL@, @LL@, @adaptivePredict@, the @ATN@, and the @lookahead DFA@ all work together in th...
04/17/2026
- 11:06 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- You should now be able to see the latest version of @ProgressParser.g4@, along with the other grammars. Please note t...
- 10:53 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- I committed my test project as rev *16494* (is based on 16493 + 10804a changes).
- 10:37 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- I did some additional debugging, and I'm starting to think this may not actually be an ANTLR4 issue, but rather a pro...
- 09:38 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- I'll take care of it once the article has been read.
- 09:29 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- Let me create a short grammar to see if this is clearly an antlr4 bug or not. (I'm referring to tokens fetching)
- 09:26 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- Based on the documentation:
* *SLL* is fast but context insensitive and it may fail on complex grammars
* *LL* is a... - 09:06 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- Here's an article about @adaptive LL(*)@: https://www.antlr.org/papers/allstar-techreport.pdf I'll look into it.
- 09:02 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- Neither prediction mode solved the token fetching issue after I reverted my fix. But let me surprise you even more: m...
- 08:32 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- However, I don't think adaptivePredict itself can be avoided. What we may be able to change instead is the prediction...
- 08:25 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- yes..
Here are the prediction modes: LL, LL_EXACT_AMBIG_DETECTION and SLL - 08:23 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- I think by using @parser.getInterpreter().setPredictionMode(...)@, but I need to see what are the available predictio...
- 08:15 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- Greg Shah wrote:
> I don't understand how @adaptivePredict()@ can be so stupid. From the original @progress.g@, that... - 08:07 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- my testing project is based on trunk *16493* + 10804 changes. What if I overwrite the current version of 10804a with ...
- 07:42 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- If you want to test the parser I think I can upload my testing project on devsrv, tmp directory.
- 07:40 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- Would @ProgressParser.g4@ be sufficient? I do have a some additional changes as well, but those are currently in a tr...
- 05:28 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- PS: My goal is to get the @fwd-embedded-driver@ converted correctly. I've made progress up to line @139@ so far, wher...
- 05:26 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- Current failing testcase:...
- 03:48 AM Conversion Tools Feature #10804: create replacement AST implementation for use with ANTLR 4
- I think I found the root cause! 🥳 Let me break it down for you.
The flow for a DEFINE statement currently looks li...
Also available in: Atom