lc

lc2-compiler

lemoncase2 parser

Showing:

Popularity

Downloads/wk

56

Maintenance

No Maintenance Data Available

Package

Dependencies

0

Size (min+gzip)

12.9KB

License

MIT

Type Definitions

Built-In

Tree-Shakeable

No?

Categories

Readme

api

This main exported function takes a lc2 code string and
returns an abstract syntax tree

export function parse(input: string, options?: configObject): Object;

This function tries to parse a single expression
Useful for REPL, testing, and parsing mixed-language formats

export function parseAt(input: string, options?: configObject): Object;

How to use parse file

const parseFile = require('lc2-compiler/pre');
parseFile('your code', {sourceFile: 'path/to/your/code'});

Note that sourceFile option is required

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100