Module Parser


module Parser: sig .. end
Jtemplate parser expression parsing adapted from ECMA-262 http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf
Author(s): Tony BenBrahim < tony.benbrahim at gmail.com >


type token =
| ID of string
| INT of int
| STRING of string
| REAL of float
| BOOLEAN of bool
| TEXT of string
| COMPOP of Ast.comparator
| IMPORT of bool
| FOREACH
| WHILE
| IF
| FOR
| ELSE
| TEMPLATE
| INSTRUCTIONS
| FUNCTION
| CONTINUE
| BREAK
| RETURN
| IN
| ONCE
| WHEN
| VAR
| EOF
| LBRACE
| RBRACE
| LPAREN
| RPAREN
| LBRACKET
| RBRACKET
| COMMA
| SEMICOLON
| COLON
| DOTDOTDOT
| DOT
| EQUALS
| NOT
| QUESTION
| PLUS
| MINUS
| TIMES
| DIVIDE
| MODULO
| AND
| OR
| VOID
| SWITCH
| CASE
| DEFAULT
| PLUSEQUALS
| MINUSEQUALS
| TIMESEQUALS
| DIVEQUALS
| MODEQUALS
| PLUSPLUS
| MINUSMINUS
| AT
| TRY
| CATCH
| THROW
| FINALLY
| PROTOTYPE
| OUTOFRANGENUMBER

Jtemplate parser expression parsing adapted from ECMA-262 http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf
val parse_error : string -> unit
val get_env : unit -> string * int
val resolve_import : string * 'a * (string * 'b) -> string
val extract_stmt_list : Ast.statement -> Ast.statement list
val yytransl_const : int array
val yytransl_block : int array
val yylhs : string
val yylen : string
val yydefred : string
val yydgoto : string
val yysindex : string
val yyrindex : string
val yygindex : string
val yytablesize : int
val yytable : string
val yycheck : string
val yynames_const : string
val yynames_block : string
val yyact : (Parsing.parser_env -> Obj.t) array
val yytables : Parsing.parse_tables
val program : (Lexing.lexbuf -> token) -> Lexing.lexbuf -> Ast.statement