{"id":18551854,"url":"https://github.com/pcmarks/jython-antlr4-book-examples","last_synced_at":"2026-02-02T21:41:16.097Z","repository":{"id":13251257,"uuid":"15936182","full_name":"pcmarks/Jython-ANTLR4-Book-Examples","owner":"pcmarks","description":"Jython versions of the ANTLR4 book examples.","archived":false,"fork":false,"pushed_at":"2014-01-15T15:56:15.000Z","size":184,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-07T22:17:22.282Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"ANTLR","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pcmarks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-15T13:41:00.000Z","updated_at":"2022-01-05T13:13:43.000Z","dependencies_parsed_at":"2022-09-23T11:11:50.957Z","dependency_job_id":null,"html_url":"https://github.com/pcmarks/Jython-ANTLR4-Book-Examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pcmarks/Jython-ANTLR4-Book-Examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcmarks%2FJython-ANTLR4-Book-Examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcmarks%2FJython-ANTLR4-Book-Examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcmarks%2FJython-ANTLR4-Book-Examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcmarks%2FJython-ANTLR4-Book-Examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pcmarks","download_url":"https://codeload.github.com/pcmarks/Jython-ANTLR4-Book-Examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcmarks%2FJython-ANTLR4-Book-Examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29021029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T18:51:31.335Z","status":"ssl_error","status_checked_at":"2026-02-02T18:49:20.777Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T21:10:35.905Z","updated_at":"2026-02-02T21:41:16.081Z","avatar_url":"https://github.com/pcmarks.png","language":"ANTLR","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nJython Versions of the ANTLR4 Book Examples\n===========================================\n\nThis repository contains Jython translations of some of the ANTLR4 examples found in the book \"The Definitive\nANTLR4 Reference\" by Terrance Parr. The original, java examples can\nbe downloaded from: http://pragprog.com/titles/tpantlr2/source_code\n\nSetup\n-----\nThe following steps assume:\n * jython is in your system's execution path - Jython 2.7b1 was used.\n * The ANTLR v4 library (jar file) is in the CLASSPATH.\n * a4 command invokes the ANTLR v4 Tool.\n\nTypical Steps\n-------------\n 1. a4 Grammar.g4\n 2. javac Grammar*.java\n 3. jython example.py test_file\n\nSpecific Steps\n--------------\ntour/Calc.py\n 1. a4 -no-listener -visitor LabeledExpr.g4\n 2. javac LabeledExpr*.java\n 3. jython Calc.py t.expr\n\ntour/ExtractInterfaceTool.py\n 1. a4 Java.g4\n 2. javac Java*.java\n 3. jython ExtractInterfaceTool.py Demo.java\n\ntour/Col.py\n 1. a4 -no-listener Rows.g4\n 2. javac Rows*.java\n 3. jython Col.py 1 t.rows\n 4. jython Col.py 2 t.rows\n 5. jython Col.py 3 t.rows\n\ntour/InsertSerialID.py\n 1. a4 Java.g4\n 2. javac Java*.java\n 3. jython InsertSerialID.py Demo.java\n\nlisteners/TestPropertyFile.py\n 1. a4 PropertyFile.g4\n 2. javac PropertyFile*.java\n 3. jython TestPropertyFile.py t.properties\n\nlisteners/TestPropertyFileVisitor.py\n 1. a4 -visitor PropertyFile.g4\n 2. javac PropertyFile*.java\n 3. jython TestPropertyFileVisitor.py t.properties\n\nlisteners/TestEvaluator.py\n 1. a4 Expr.g4\n 2. javac Expr*.java\n 3. jython TestEvaluator.py t.expr\n\nlisteners/LoadCSV.py\n 1. a4 CSV.g4\n 2. javac CSV*.java\n 3. jython LoadCSV.py t.csv\n\nlisteners/CallGraph.py\n 1. a4 Cymbol.g4\n 2. javac Cymbol*.java\n 3. jython CallGraph.py t.cymbol \u003e CallGraph.dot\n 4. dot -Tpng CallGraph.dot -o CallGraph.png        (*nix Graphviz)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcmarks%2Fjython-antlr4-book-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpcmarks%2Fjython-antlr4-book-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcmarks%2Fjython-antlr4-book-examples/lists"}