package lua_parser

  1. Overview
  2. Docs

Module Lua_parser.Lexer_utilsSource

Sourceval pspos : Lexing.lexbuf -> string

Prints out the current position for error handling.

Sourceval lexeme : Lexing.lexbuf -> string

Gets next token for the lexers buffer.

Sourceval new_line : Lexing.lexbuf -> unit

Informs the lexer of a new line.

Sourceval in_lcomm : Lexing.lexbuf -> unit

Start lexing a long comment.

Sourceval out_lcomm : Lexing.lexbuf -> (Lexing.lexbuf -> 'a) -> (Lexing.lexbuf -> 'a) -> 'a

Finish lexing a long comment.

Sourceval in_lstr : Lexing.lexbuf -> unit

Start lexing a long string.

Sourceval out_lstr : Lexing.lexbuf -> (Lexing.lexbuf -> 'a) -> (Lexing.lexbuf -> 'a) -> 'a

Finish lexing a long string.

Sourceval add_buf : char -> unit

Add a character to the lexers buffer.

Sourceval get_buf : unit -> string

Get the contents of the lexers buffer.

Sourceval nl_buf : unit -> unit

Add a newline to the lexers buffer.

OCaml

Innovation. Community. Security.