Closed duaraghav8 closed 8 years ago
if (a && (b || (!c))) { foo (); }
the AST for the above, when passed to soltar.generate (), generates the following:
soltar.generate ()
if (a && b || !c) {\n\tfoo ();\n}
Another example
(89 * 2) - (12 + (34 / (y**2))) + (23 % (2**2))
output:
89 * 2 - 12 + 34 / y ** 2 + 23 % 2 ** 2;
there should be brackets :'(
the AST for the above, when passed to
soltar.generate ()
, generates the following:Another example
output:
there should be brackets :'(