antlr / antlr4

ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.
http://antlr.org
BSD 3-Clause "New" or "Revised" License
17.12k stars 3.28k forks source link

TestRig exports invalid SVG #4533

Open PlanetEarthSoftware opened 8 months ago

PlanetEarthSoftware commented 8 months ago

[1] Damn! Github made it look like my description was not entered as I added to the comment rather than uncommenting it.

Please include the following information:

Run antlr on the attached grammar. Xenon.g4.zip

antlr4 Xenon.g4

Complete the parser

javac *.java

Run the testrig

grun Xenon xenon -gui config.xenon

Export to SVG The .svg is attached

fault

Open the .svg in say Microsoft Edge.

This page contains the following errors:
error on line 196 at column 6: xmlParseEntityRef: no name
Below is a rendering of the page up to the first error.
kaby76 commented 8 months ago

We don't know what your input is. Please provide an input string.

neon12345 commented 8 months ago

The SVG implementation seems to be incomplete. (try GH-4521)

GeneThomas commented 8 months ago

config.xenon.zip