Jison Lex is an actively used programming language created in 2013.

6Years Old 1,109Users 0Jobs
  • Jison Lex ranks in the bottom 50% of languages
  • Jison Lex on github
  • Jison Lex first appeared in 2013
  • I have 33 facts about Jison Lex. just email me if you need more.

Example code from Linguist:

%%
\n+                         {yy.freshLine = true;}
\s+                         {yy.freshLine = false;}
"y{"[^}]*"}"                {yytext = yytext.substr(2, yyleng - 3); return 'ACTION';}
[a-zA-Z_][a-zA-Z0-9_-]*     {return 'NAME';}
'"'([^"]|'\"')*'"'          {return 'STRING_LIT';}
"'"([^']|"\'")*"'"          {return 'STRING_LIT';}
"|"                         {return '|';}
"["("\]"|[^\]])*"]"         {return 'ANY_GROUP_REGEX';}
"("                         {return '(';}
")"                         {return ')';}
"+"                         {return '+';}
"*"                         {return '*';}
"?"                         {return '?';}
"^"                         {return '^';}
"/"                         {return '/';}
"\\"[a-zA-Z0]               {return 'ESCAPE_CHAR';}
"$"                         {return '$';}
"<<EOF>>"                   {return '$';}
"."                         {return '.';}
"%%"                        {return '%%';}
"{"\d+(","\s?\d+|",")?"}"   {return 'RANGE_REGEX';}
/"{"                        %{if (yy.freshLine) { this.input('{'); return '{'; } else { this.unput('y'); }%}
"}"                         %{return '}';%}
"%{"(.|\n)*?"}%"            {yytext = yytext.substr(2, yyleng - 4); return 'ACTION';}
.                           {/* ignore bad characters */}
<<EOF>>                     {return 'EOF';}
Edit

Last updated February 11th, 2019