Skip to content

LuaCC is a lightweight lua compiler compiler/ parse generator

Notifications You must be signed in to change notification settings

alinalihassan/LuaCC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 

Repository files navigation

LuaCC


  • LuaCC is a lightweight lua compiler compiler/ parse generator for Lua, a C derived language;
  • LuaCC is a WIP( Work In Progress);
  • LuaCC work just with Lua 5.2;

Features

  • LuaCC languages can be compiled to Lua or executed.
  • Math unary operators and augmented assignment operators (OPTIONAL).
  • Variable classes:int, bool, string (OPTIONAL).
  • You can customize your own syntax very easy.
  • LuaCC is the most lightweight parse generator, under 500 lines with comments.
  • LuaCC is also the single parse generator for Lua.
  • You can compile your own language files to .lua using LuaCC.Compile function.
  • You can execute your language files using LuaCC.Execute.
  • You can use your own langauge into a .lua file using the LuaCC.Run function.
  • You decide if your language is case sensitive or not (All characters are lower).
  • You can replace Lua variables or functions using the Replace table(look in the source).
  • You can decide if the .lua code is minified or not .
  • You can also use the BuiltIn 'using' function(it makes the same thing as in C/C++)(OPTIONAL)
  • You can use operators for other Lua Types(OPTIONAL)
  • You can use the C's conditional or change it to your very own (a ? b : c)(OPTIONAL)
  • You can set a programming language extension
  • You can set strict variable types in functions like in C/C++
  • You can set your own variables
  • You can start a function using { } like in C/C++

The API

LuaCC = require "LuaCC"
LuaCC.Run(CODE) -- you can use it in a .lua file
LuaCC.Execute(FILE) -- you can execute .clua files
LuaCC.Compile(FILE,NEWFILE) -- you can turn your own language files into .lua files, for overwrite use the same string for FILE and NEWFILE
LuaCC.Decode(CODE) -- Convert your language's code into lua

About

LuaCC is a lightweight lua compiler compiler/ parse generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages