package lua_parser

  1. Overview
  2. Docs
A Lua 5.2 Parser

Install

Dune Dependency

Authors

Maintainers

Sources

1.0.2.tar.gz
md5=35b1a3c607a0e23f81322f4b99b11d13
sha512=ed3995928aaf87d68114a9d5bee1ca5b41dd359134589ef6eba4ea2cc5b41a78bc4ac35603301dc1bd29260a0908c6142fabf689a7a7d8b76a3abf8ecdbd9194

doc/lua_parser.lib/Lua_parser/Lexer_utils/index.html

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.