language-lua alternatives and similar packages
Based on the "Language" category.
Alternatively, view language-lua alternatives based on common mentions on social networks and blogs.
-
elm-compiler
Compiler for Elm, a functional language for reliable webapps. -
purescript
A strongly-typed language that compiles to JavaScript -
stylish-haskell
Haskell code prettifier [Moved to: https://github.com/haskell/stylish-haskell] -
haskell-src-exts
Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer -
haskell-tools-ast-fromghc
Developer tools for Haskell -
nirum
Nirum: IDL compiler and RPC/distributed object framework for microservices -
language-python
A parser for Python 2.x and 3.x written in Haskell -
liquid-fixpoint
Horn Clause Constraint Solving for Liquid Types -
elm-export
Create Elm types and JSON decoders from Haskell source. -
tal
An implementation of Typed Assembly Language (Morrisett, Walker, Crary, Glew) -
shentong
A Haskell implementation of the Shen programming language. -
camfort
Light-weight verification and transformation tools for Fortran -
language-c-quote
C/CUDA/OpenCL/Objective-C quasiquoting library. -
aterm-utils
Utility functions for working with aterms as generated by Minitermite -
language-ecmascript
Haskell library: ECMAScript parser, pretty-printer and additional tools -
ministg
Ministg is an interpreter for a high-level, small-step, operational semantics for the STG machine. -
purescript-tsd-gen
TypeScript Declaration File (.d.ts) generator for PureScript
Access the most powerful time series database as a service
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of language-lua or a related project?
README
language-lua - Lua 5.3 lexer, parser and pretty-printer
This package is just like any other language x packages. It provides lexer, parser and pretty-printer for Lua programming language.
Usage
This module provides 3 parsers.
chunk
: Lua file parser.exp
: Lua expression parser.stat
: Lua statement parser.
Lexing is needed before running a parser. parseText
function runs lexer before parsing. So if you want to parse a Lua expression, you can call parseText exp string
, where string is the Lua expression to parse.
parseFile
is a helper to parse Lua files. Example: parseFile "/path/to/lua/file"
. This is same as parseText chunk `fmap` readFile path
.
Note that parseText
may result with failure, so it's return type is Either ParserError a
.
Lexer
Lexer is not exported by top-level Language.Lua module. You need to import Language.Lua.Lexer
. After that, llex string
scans the string and returns token list. Tokens are defined in Language.Lua.Token
.
Pretty-printer
Pretty-printer is still under development, and subject to lots of changes. It works, but lots of functionality will be added.
For now, you can use pprint syntax_tree
to pretty-print a Lua syntax tree.