Skip to content

tvo/spoofax-lua

Repository files navigation

Spoofax-Lua: a Lua Eclipse plugin based on Spoofax

What is it?

Spoofax-Lua is an Eclipse plugin for editing Lua files, based on Spoofax. It's been made for educational/testing purposes, so don't expect too much.

How to use?

Install Spoofax nightly by following the instructions here, but use http://www.lclnet.nl/update/nightly as the update site URL.

When finished, import this project into your workspace and press ctrl+alt+B to build it. After this .lua files should open in this plugin.

Features

  • Completion and reference resolving of:
    • global variables that are assigned anywhere in the file
    • local variables in the current scope
  • Completion of:
    • table fields
    • function arguments
  • Warns about:
    • incorrect placement of break statements
    • use of unassigned globals
    • unused globals
    • unused locals
  • Folding of functions
  • Rudimentary outline view (only when deployed)
  • Syntax tested on more than 3650 Lua files

Missing features / To do

  • Checks for obvious (type) errors
  • Multi-file analysis (e.g., dofile, require)
  • Debugging (not planned)
  • Much more (not planned)

About

Spoofax-Lua: a Lua Eclipse plugin based on Spoofax

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published