MCPcopy Create free account
hub / github.com/davidkingzyb/SCAST / getAst

Function getAst

js/SCAST.js:638–642  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

636 }
637
638 function getAst(code){
639 var inputSteam = InputStream(code);
640 var tokenSteam = TokenStream(inputSteam);
641 return parse(tokenSteam);
642 }
643 function traverseAst(node,callback){
644 callback&&callback(node)
645 if(node.body&&node.body.length>0){

Callers

nothing calls this directly

Calls 3

InputStreamFunction · 0.70
TokenStreamFunction · 0.70
parseFunction · 0.70

Tested by

no test coverage detected