Luaparse

A Lua parser written in JavaScript, for my bachelor's thesis at Arcada.

luaparse Build Status

A Lua parser written in JavaScript, for my bachelor's thesis at Arcada.

Still in development

Getting started

CommonJS

var parser = require('luaparse');
parser.parse('i = 0');

AMD

require(['luaparse'], function(parser) {
  parser.parse('i = 0');
});

Browser

luaparse.parse('i = 0');

Makefile

Common

# Run the tests
make test

# Create the documentation
make docs

# Build a distribution file
make build

Development

# Install necessary development packages
make install

# Update mocha, expect.js and benchmark scripts.
make update

# Version bump
make VERSION=0.1.1 version-bump

# Scaffold the test files, useful if something has changed in the AST.
make scaffold-tests

# Before contributing any code check quality assurance.
make qa

# Check complexity
make complexity-analysis

# Check coverage
make coverage-analysis

# Lint code
make lint

Benchmark

# Run simple benchmark
make benchmark

# Profile v8 internals (Expects /opt/v8/tools/linux-tick-processor)
# Alternatively you can specify the tick-processor path using a PROCESSOR variable.
make profile

# Compare current current commit to previous
make benchmark-previous

Todo

0.1.0

Support

Has been tested in IE6+, Firefox 3+, Safari 4+, Chrome 10+, Opera 10+, Node

Acknowledgements

License

MIT