Giter VIP home page Giter VIP logo

jsonval's Introduction

Simple C program to validate JSON

jsonval's People

Contributors

dangerousben avatar roguelazer avatar christopher-hopper avatar joeyadams avatar

Stargazers

Eugene avatar ihsan avatar Denis avatar  avatar Yashwanth Lakkaraju avatar Ananda Bhattacharya avatar Jacky Alciné avatar Liam Clancy avatar Vasili Sviridov avatar  avatar Paul Hammond avatar

Watchers

 avatar James Cloos avatar

jsonval's Issues

Compile error: unknown type name 'yyscan_t'

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.

Compiling Error with flex options

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.