package lua_parser

  1. Overview
  2. Docs
A Lua 5.2 Parser

Install

Dune Dependency

Authors

Maintainers

Sources

1.0.0.tar.gz
md5=040b79da95d5dbe7d5d2ecc03320b72e
sha512=537e2b38bf8590e9fc4592f4e39a6a8ad3029693e6b052376d342c13be9349fa4db3d3a2557e7ffaeb6580ad929d681271d951d0b619d3c6ca448042412e4a74

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.