Skip to content

Python3.g4 grammar not working #2

@arman000

Description

@arman000

The Python3.g4 grammar works fine with the standard ANTLR 4.5 "grun" macro. However, it doesn't work with clj-antlr in lein repl:

(require ['clj-antlr.core :as 'antlr])
(def python3 (antlr/parser "grammars-v4/python3/Python3.g4" {:root "file_input"}))
(python3 "2 + 2\n")

==> ParseError no viable alternative at input '+ '  clj-antlr.common/parse-error (common.clj:146)

Sorry if this is a noob issue. I'm very new to Clojure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions