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

Support Libs
opengl
cbframe
unixperms
pixman
lua-headers
shm
llvm
freetype
harfbuzz
fribidi
libunibreak
lx
ffi_reflect
jsmin
linebuffer

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: 3 years ago | Edit on GitHub

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

Requires: luajit 

Required by: none


Top