Skip to content

Latest commit

 

History

History

luahelpparser

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

luahelpparser

Parser for LuaHelp, an API documentation for the Lua tree from Transformice. Produces an abstract syntax tree (AST)-like object representing the LuaHelp output.

Example usage

import { promises as fsp } from "fs";
import { parse } from "@cassolette/luahelpparser";

const luaHelpAst = parse(
    (await fsp.readFile("./luahelp.txt")).toString()
);

console.log(JSON.stringify(luaHelpAst, null, 2));