GithubHelp home page GithubHelp logo

bovid / bovid.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zaach/jison

16.0 16.0 3.0 2.86 MB

Bison in JavaScript

Home Page: http://bovid.github.io/Bovid.js

JavaScript 81.52% Ruby 0.40% CSS 0.98% Makefile 0.11% HTML 9.56% Lex 2.90% Yacc 4.53%

bovid.js's People

Contributors

a-pechenyi avatar abadb avatar abhisheksoni27 avatar cdibbs avatar dahmian avatar edi9999 avatar fieldkit-zz avatar flip111 avatar gerhobbelt avatar harthur avatar hyperfocusaurus avatar jasondavies avatar joseanpg avatar kanaka avatar knuton avatar matthewkastor avatar micha avatar nelsonjchen avatar paulftw avatar phillipalexander avatar puffnfresh avatar redchair123 avatar robertleeplummerjr avatar rubenverborgh avatar satyr avatar shytikov avatar strathmeyer avatar syrnick avatar zaach avatar zealotrunner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bovid.js's Issues

hello world grammar mistake?

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??

file format utf16 ??

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)

hello world

My test file doesn't work. Steps taken:

  1. npm install jison -g as described in https://github.com/robertleeplummerjr/jison/blob/master/README.md
  2. replaced files with zip file from master (because i think node download the original version from zaach/jison
  3. Create test file
//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
  1. run node D:\dev\http\testProject>node C:\Users\flip111\AppData\Roaming\npm\node_modules\jison\ports\php\php.js test.jison
    output:
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

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.