Add pretty-printing command line tool.

This commit is contained in:
Tor Andersson
2018-04-23 11:46:18 +02:00
parent 25821e6d74
commit d04cbf3cc7
4 changed files with 299 additions and 125 deletions

View File

@@ -140,7 +140,7 @@ js_Ast *jsP_parse(js_State *J, const char *filename, const char *source);
void jsP_freeparse(js_State *J);
const char *jsP_aststring(enum js_AstType type);
void jsP_dumpsyntax(js_State *J, js_Ast *prog);
void jsP_dumpsyntax(js_State *J, js_Ast *prog, int minify);
void jsP_dumplist(js_State *J, js_Ast *prog);
#endif