Closed Jypear closed 7 months ago
Hi, thank you for your reporting. I'll take a look into this. Is there any chance you could send me ( goodies@codeout.net ) the problematic .xsd, by the way?
Hi, thanks for the reply.
I should have sent across the file. I'll remove it after a couple of days.
Hi, I have fixed an issue in the parser generator. With the latest origin/main you should be able to generate a correct ruby parser.
Please reopen this issue if you have any further problem.
Hi,
First of all thanks for the awesome project!
I seem to be encountering an issue when using an XSD file to generate new rules using the Rakefile. I have downloaded and tried different versions from the Juniper website both seem to have the same results.
I followed a git issue from earlier and tried older tags but still seem to be having this issue.
Option 1: specific_install
Optional 2: regular install
Then I run the usual build to deploy the latest rules from the XML Schema
The result is when I attempt to run junoser I get a syntax error inside parser.rb
Going to line 115213 I can see the following:
For the full class which this relates too see below:
I can fix this by just removing that statement from the rule:
When run:
The project still works fine with the built in rules/parsers. Just when I attempt to parse a new one. This was tried on xsd versions 20.4R3 and 22.3R0 - downloaded from Junipers site.