Comments (4)
Hello @gvanem, it looks like you are trying to use the parser generation flag (-p) which is not yet supported as described in the README. See here: https://github.com/rrozansk/SPaG#status. As for '_NULL', it is a special definition that may not be present in all compilers. Finally, if you need a compiler generator to build the scanner/parser, may i suggest something like 'Flex/Lex' or 'Yacc/Bison' as an alternative to SPaG as these are more reliable battle tested programs which may offer much more extensive features, help, and support.
from spag.
As for '_NULL', it is a special definition that may not be present in all compilers.
Can you name one compiler that does not have NULL
? You add a #include <stdio.h>
and NULL
is almost always defined to 0
.
may i suggest something like 'Flex/Lex' or 'Yacc/Bison'
I know these tools. But (except for the awful .json
files) it seemed your tool looked more compact.
from spag.
Hey @gvanem, I cannot name any C compilers without NULL, but that is not what I am stating. Rather, that '_NULL' is not necessarily the same as 'NULL'. The former is an implementation detail and not portable. The latter is what should be used as it is what is actually defined in the stdio.h header file as you described.
As for the JSON files, I concur that they could be in a better format. This way was chosen for simplicity as it makes parsing the input easier as python natively support JSON.
Lastly, I would like to say that this project has mostly gone stale since I have not had any time to work on it in quite a while. If you are up to the task and the compactness of the tool appeals to you then you can certainly feel free to contribute and it would be very much appreciated!
from spag.
Rather, that '_NULL' is not necessarily the same as 'NULL'.
Yes, off-course not. I meant that one cannot use NULL
in an enum-list like you did.
Hence _NULL
(or JSON_NULL
in this case) should be used.
Closing this now.
from spag.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spag.