lights FAQ Forum github.com/luapower/lx
This package
lx

C Support Libs
pixman
libmariadb
openssl
lua-headers
shm
llvm
freetype
harfbuzz
fribidi
libunibreak
pcre
lx

lx

Lua lexer in C with extensible Lua parser


local lx = require'lx'

Lua lexer in C with extensible Lua parser in Lua.

Used as the lexer & parser for terra2.

Can be used to create embedded DSLs that:

  • have Lua syntax(1), but have their own grammar and keywords.
  • can reference Lua local variables from the outer Lua lexical scope.
  • can contain full Lua expressions that are evaluated in the outer Lua lexical scope.

(1): extended with >>, <<, -> operators.

Status

Work in progress.


Last updated: 5 months ago | Edit on GitHub

Package:lx
Pkg type:Lua+ffi
Version: 2bebac3
Last commit:
Author: Cosmin Apreutesei
License: Public Domain

Requires: luajit 

Required by: none


Top