Jison is an actively used programming language created in 2009.

10Years Old 4,274Users 0Jobs
  • Jison ranks in the top 50% of languages
  • the Jison website
  • Jison on github
  • Jison first appeared in 2009
  • file extensions for Jison include jison
  • I have 39 facts about Jison. what would you like to know? email me and let me know how I can help.

Example code from Linguist:

/* description: ClassyLang grammar. Very classy. */
/*
  To build parser:

    $ ./bin/jison examples/classy.jison examples/classy.jisonlex

*/


/* author: Zach Carter */

%right ASSIGN
%left OR
%nonassoc EQUALITY GREATER
%left PLUS MINUS
%left TIMES
%right NOT
%left DOT

%%

pgm
    : cdl MAIN LBRACE vdl el RBRACE ENDOFFILE
    ;

cdl
    : c cdl
    |
    ;

c
    : CLASS id EXTENDS id LBRACE vdl mdl RBRACE
    ;

vdl
    : VAR t id SEMICOLON vdl
    |
    ;

mdl
    : t id LPAREN t id RPAREN LBRACE vdl el RBRACE mdl
    |
    ;

t
    : NATTYPE
    | id
    ;

id
    : ID
    ;

el
    : e SEMICOLON el
    | e SEMICOLON
    ;

e
    : NATLITERAL
    | NUL
    | id
    | NEW id
    | THIS
    | IF LPAREN e RPAREN LBRACE el RBRACE ELSE LBRACE el RBRACE
    | FOR LPAREN e SEMICOLON e SEMICOLON e RPAREN LBRACE el RBRACE
    | READNAT LPAREN RPAREN
    | PRINTNAT LPAREN e RPAREN
    | e PLUS e
    | e MINUS e
    | e TIMES e
    | e EQUALITY e
    | e GREATER e
    | NOT e
    | e OR e
    | e DOT id
    | id ASSIGN e
    | e DOT id ASSIGN e
    | id LPAREN e RPAREN
    | e DOT id LPAREN e RPAREN
    | LPAREN e RPAREN
    ;

Last updated July 22nd, 2019