Skip to content

puckchain/puckchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puckchain

A javascript toolchain of compiler frontend for you to parse codes and make some amazing things.

img   img   GitHub

Contents

1、User Guide

(1) What is puckchain

It's a javascript toolchain of compiler frontend for you to parse codes and make some amazing things, such as code editor, domain specific language, etc.

puckchain

(2) What will it bring to us

It provides some out of box components of compiler frontend, you can solve many scenarios that require parsing code.

2、Install

git clone https://github.com/WGrape/puckchain/
npm install

3、Usage

(1) chain-lexer

let puckChain = require('puckChain');
lexer = puckChain.chainLexer.cLexer;
let code = "int a = 20;";
lexer.start("code");
let parsedTokens = lexer.DFA.result.tokens;

About

A javascript toolchain of compiler frontend for you to parse codes and make some amazing things.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published