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

Int ambigious #211

Open
h4ck3rm1k3 opened this issue May 3, 2017 · 0 comments
Open

Int ambigious #211

h4ck3rm1k3 opened this issue May 3, 2017 · 0 comments

Comments

@h4ck3rm1k3
Copy link

Hi there,
thanks for this great project.

I found an interesting case where the json generated is not parsable.

Input https://github.com/h4ck3rm1k3/gogccintro/blob/master/parser/ast/Ast.go

generates :
https://github.com/h4ck3rm1k3/gogccintro/blob/master/parser/ast/Ast_ffjson.go

But I needed to hack the generated code
https://github.com/h4ck3rm1k3/gogccintro/blob/master/parser/Ast_ffjson.go

for example :
https://github.com/h4ck3rm1k3/gogccintro/blob/master/parser/Ast_ffjson.go#L979
where I allow for a string representation of the int.

mdupont@debian-build-speed:~/experiments/gogccintro/parser$ head -12 gccpretty.json 
{
  "Count": {
    "TheCount": 2311442
  },
  "NodeTypes": {
    "\n": {
      "Count": {
        "TheCount": 399
      },
      "AttributeCount": {
        "2": { 

The problem is in the 2 on the last line for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant