bovid / bovid.js Goto Github PK
View Code? Open in Web Editor NEWThis project forked from zaach/jison
Bison in JavaScript
Home Page: http://bovid.github.io/Bovid.js
This project forked from zaach/jison
Bison in JavaScript
Home Page: http://bovid.github.io/Bovid.js
I have my test file like this
//option namespace:someNamespace
//option class:someClass
//option fileName:out.php
//option extends:someExtend
//option parserValue:someParser
//Lexical Grammar
%lex
HELLO hello
WORLD world
//Create tokens from lexical analysis
%%
HELLO {
return 'hi';
}
WORLD {
return 'planet';
}
/lex
%%
test
: HELLO WORLD
When i run jison it returns:
Executing: jison test.jison
Failed: 8
Is this a mistake of the grammar or another thing that is going wrong entirely??
Hi i noticed that in some of the new files like php.js
there is a UTF-16, little endian Byte Order Mark 0xFFFE
present. My editor can not handle this BOM and i never saw this used before, perhaps utf8 will work fine (if you need special characters)
See https://github.com/wikiLingo/wikiLingo/blob/master/WikiLingo/Definition.jison
Extra options:
//option extends:Base
//option parserValue:Parsed
//option use:WikiLingo\Utilities;
My test file doesn't work. Steps taken:
npm install jison -g
as described in https://github.com/robertleeplummerjr/jison/blob/master/README.mdzaach/jison
//option namespace:someNamespace
//option class:someClass
//option fileName:out.php
//option extends:someExtend
//option parserValue:someParser
//Lexical Grammar
%lex
HELLO hello
WORLD world
//Create tokens from lexical analysis
%%
HELLO {
return 'hi';
}
WORLD {
return 'planet';
}
/lex
%%
test
: HELLO WORLD
D:\dev\http\testProject>node C:\Users\flip111\AppData\Roaming\npm\node_modules\jison\ports\php\php.js test.jison
Executing: jison test.jison
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:998:11)
at Process.ChildProcess._handle.onexit (child_process.js:789:34)
node version: v0.10.28
npm version: 1.4.9
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.