package lua_parser

  1. Overview
  2. Docs
val pspos : Stdlib.Lexing.lexbuf -> string

Prints out the current position for error handling.

val lexeme : Stdlib.Lexing.lexbuf -> string

Gets next token for the lexers buffer.

val new_line : Stdlib.Lexing.lexbuf -> unit

Informs the lexer of a new line.

val in_lcomm : Stdlib.Lexing.lexbuf -> unit

Start lexing a long comment.

val out_lcomm : Stdlib.Lexing.lexbuf -> (Stdlib.Lexing.lexbuf -> 'a) -> (Stdlib.Lexing.lexbuf -> 'a) -> 'a

Finish lexing a long comment.

val in_lstr : Stdlib.Lexing.lexbuf -> unit

Start lexing a long string.

val out_lstr : Stdlib.Lexing.lexbuf -> (Stdlib.Lexing.lexbuf -> 'a) -> (Stdlib.Lexing.lexbuf -> 'a) -> 'a

Finish lexing a long string.

val add_buf : char -> unit

Add a character to the lexers buffer.

val get_buf : unit -> string

Get the contents of the lexers buffer.

val nl_buf : unit -> unit

Add a newline to the lexers buffer.

OCaml

Innovation. Community. Security.