Skip to content
This repository has been archived by the owner on Jan 10, 2019. It is now read-only.

bracketing fuckups #9

Closed
duaraghav8 opened this issue Aug 23, 2016 · 0 comments
Closed

bracketing fuckups #9

duaraghav8 opened this issue Aug 23, 2016 · 0 comments

Comments

@duaraghav8
Copy link
Owner

duaraghav8 commented Aug 23, 2016

if (a && (b || (!c))) { foo (); }

the AST for the above, when passed to soltar.generate (), generates the following:

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 :'(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant