Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate identical atn simulation output across targets to compare parsing functionality #3957

Merged
merged 42 commits into from
Nov 19, 2022

Commits on Nov 14, 2022

  1. Remove final keyword from debug_list_atn_decisions and dfa_debug in J…

    …ava target.
    
    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    3f20db3 View commit details
    Browse the repository at this point in the history
  2. no such thing as CompositeLexer

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    ae62a39 View commit details
    Browse the repository at this point in the history
  3. Oops. Misunderstood Composite term.

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    b3ef896 View commit details
    Browse the repository at this point in the history
  4. rename debug to be showDiagnosticErrors for test generation

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    6559425 View commit details
    Browse the repository at this point in the history
  5. add traceATN flag to test descriptors.

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    1f3b9d6 View commit details
    Browse the repository at this point in the history
  6. turn on debug and debug_list_atn_decisions for java.

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    7210a4c View commit details
    Browse the repository at this point in the history
  7. add some baseline tests that get no traceATN output.

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    1e7f256 View commit details
    Browse the repository at this point in the history
  8. Add command line tool TraceATN to process grammar and run in any targ…

    …et to get ATN output to stdout.
    
    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    a273e76 View commit details
    Browse the repository at this point in the history
  9. fix compile error

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    c38fa36 View commit details
    Browse the repository at this point in the history
  10. add simple LL(2) rule with ATN debug output.

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    2825dee View commit details
    Browse the repository at this point in the history
  11. Revert "add simple LL(2) rule with ATN debug output."

    This reverts commit bca48be.
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    e8ce09a View commit details
    Browse the repository at this point in the history
  12. Revert "add some baseline tests that get no traceATN output."

    This reverts commit a3197e1.
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    384bff0 View commit details
    Browse the repository at this point in the history
  13. make retry_debug also nonfinal.

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    7d70eb1 View commit details
    Browse the repository at this point in the history
  14. add script to run TraceATN

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    cc307d7 View commit details
    Browse the repository at this point in the history
  15. update javadoc

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    9786278 View commit details
    Browse the repository at this point in the history
  16. include command and test dir when compilation fails during runtime te…

    …sting.
    
    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    fccaa32 View commit details
    Browse the repository at this point in the history
  17. update doc on target testing, added needed jars to script.

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    84d5086 View commit details
    Browse the repository at this point in the history
  18. Include exit code if non-zero during command exec.

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    14648bf View commit details
    Browse the repository at this point in the history
  19. Allow debug flags to be set from command line

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    e4c7e36 View commit details
    Browse the repository at this point in the history
  20. 1. add option to dump commands exec'd during testing.

    2. Pass RunOptions to all the runners during init
    3. Make C++ set a cmake file if traceATN is set.
    
    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    3a2dbe6 View commit details
    Browse the repository at this point in the history
  21. separate lexer from parser ATN tracing.

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    fb139a7 View commit details
    Browse the repository at this point in the history
  22. get C++ and Java trace output more similar.

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    e100f04 View commit details
    Browse the repository at this point in the history
  23. remove ref to specific user in script.

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    7da167c View commit details
    Browse the repository at this point in the history
  24. * rename debug_list_atn_decisions to be trace_atn_sim

    * rename DEBUG_DFA to DFA_DEBUG to be consistent
    
    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    51c3d65 View commit details
    Browse the repository at this point in the history
  25. increase amount/quality of ATN sim debugging

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    f55a648 View commit details
    Browse the repository at this point in the history
  26. C++ target printed too much stuff with ATNConfigSet string.

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    9fc3935 View commit details
    Browse the repository at this point in the history
  27. bring C++ ATN trace up to Java

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    cc53b88 View commit details
    Browse the repository at this point in the history
  28. Add trace info for mergeArrays

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    367816d View commit details
    Browse the repository at this point in the history
  29. rm extra print in C++

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    32ea639 View commit details
    Browse the repository at this point in the history
  30. Fix an error I made in antlr#3845

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    7519413 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    03231e3 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2022

  1. Configuration menu
    Copy the full SHA
    1b21fb6 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2022

  1. another small tweak to C++ trace output

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 18, 2022
    Configuration menu
    Copy the full SHA
    ade5812 View commit details
    Browse the repository at this point in the history
  2. Add more mergeArrays output for Java/C++

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 18, 2022
    Configuration menu
    Copy the full SHA
    7cef1c3 View commit details
    Browse the repository at this point in the history
  3. Make Python[2|3] trace output look just like java's

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 18, 2022
    Configuration menu
    Copy the full SHA
    44abee7 View commit details
    Browse the repository at this point in the history
  4. Make Go trace output look just like java's

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 18, 2022
    Configuration menu
    Copy the full SHA
    488b00b View commit details
    Browse the repository at this point in the history
  5. make NodeRunner sit under node package for consistency else we got …

    …`java.lang.ClassNotFoundException: org.antlr.v4.test.runtime.node.NodeRunner` error.
    
    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 18, 2022
    Configuration menu
    Copy the full SHA
    40ce34b View commit details
    Browse the repository at this point in the history
  6. Make javascript trace sim like java.

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 18, 2022
    Configuration menu
    Copy the full SHA
    1796af4 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2022

  1. Configuration menu
    Copy the full SHA
    af528d8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d26c429 View commit details
    Browse the repository at this point in the history
  3. Make C# trace ATN sim look like Java.

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 19, 2022
    Configuration menu
    Copy the full SHA
    19344b8 View commit details
    Browse the repository at this point in the history
  4. Damn forgot to add this to the javascript update.

    Signed-off-by: Terence Parr <parrt@antlr.org>
    parrt committed Nov 19, 2022
    Configuration menu
    Copy the full SHA
    1cfb962 View commit details
    Browse the repository at this point in the history