dangerousben / jsonval Goto Github PK
View Code? Open in Web Editor NEWJSON validator
License: GNU General Public License v2.0
JSON validator
License: GNU General Public License v2.0
Simple C program to validate JSON
I'm trying to compile and install jsonval and get this error repeated twice:
error: unknown type name ‘yyscan_t’
Complete output:
# make
bison json_parser.y
flex json_scanner.l
gcc -Wall main.c json_parser.tab.c json_scanner.yy.c -o jsonval
In file included from main.c:23:0:
json_parser.tab.h:65:14: error: unknown type name ‘yyscan_t’
int yyparse (yyscan_t scanner);
^
In file included from json_parser.y:21:0:
json_parser.tab.h:65:14: error: unknown type name ‘yyscan_t’
int yyparse (yyscan_t scanner);
^
json_scanner.yy.c:1295:16: warning: ‘input’ defined but not used [-Wunused-function]
static int input (yyscan_t yyscanner)
^
Makefile:4: recipe for target 'all' failed
make: *** [all] Error 1
Here's my environment details:
# flex --version
flex 2.6.0
# gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.2) 5.4.0 20160609
# uname -a
Linux ThinkPad-Ubuntu 4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:42:33 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Can you provide any guidance? Perhaps some documentation on compile requirements would help.
I'm getting the following compilation error. Any assistance is appreciated
$ make
bison json_parser.y
flex json_scanner.l
"json_scanner.l", line 24: unrecognized %option: reentrant
"json_scanner.l", line 27: unrecognized %option: header-file
make: *** [all] Error 1
$ flex --version
flex version 2.5.4
$ uname -a
Linux xxx 2.6.18-92.1.22.el5 #1 SMP Tue Dec 16 11:57:43 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.