Int ambigious
Opened this issue · 0 comments
h4ck3rm1k3 commented
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.