Skip to content

jacobselbo/Coal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Coal

Coal is a small language built in lua with a full Lexer, Parser, and Interpreter. The language was created for fun and mimics Javascript currently but is imagined to be a cross between C#/Java and Lua.

Install

  1. Head to the most recent release
  2. Download and open the Coal.rbxmx file in Roblox Studio
  3. Start coding!

Usage

CoalModule

local Coal = require(Coal)(options)

Calling the Coal function allows a Scope table

Coal:interpret

local data = Coal:interpret(code)

interpret will return data with the table listed below

data.tokens

data.tokens holds the code tokens that are handed to the Parser

data.AST

data.AST is the Abstract Syntax Tree created by the Parser

data.globalScope

data.globalScope is the Global scope of the code (data.scopes["GLOBAL"] shorthand)

data.scopes

data.scopes carries all scopes

data.times

data.times has the Lexer, Parser, and Interpreter time starts, ends, and elapsed

About

A OOP-like Language to replace Roblox Lua

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages