A javascript toolchain of compiler frontend for you to parse codes and make some amazing things.
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.
It provides some out of box components of compiler frontend, you can solve many scenarios that require parsing code.
git clone https://github.com/WGrape/puckchain/
npm install
let puckChain = require('puckChain');
lexer = puckChain.chainLexer.cLexer;
let code = "int a = 20;";
lexer.start("code");
let parsedTokens = lexer.DFA.result.tokens;