Strip all unnecessary formatting when constructing content string for unvalidated code.
Ed94 opened this issue · comments
Ed_ commented
Necessary due to the following:
9b6dc3c
9b6dc3c
AST construction that needs it:
- Define Directive
Pragma Directive: Any pragmas formatted differently will not work out, not supporting.Comment: Comments are not validated.Execution: There will be support for function body content, just not the expression values.- Platform Attributes
- Untyped
Both the upfront & parsing constructor need it, could make a helper function to do this for any string.
Essentially involves removing any formatting isn't important between syntax tokens.
What would be kept:
- A single space between non-whitespace.
- Newlines
Should minimize or possibly eliminate any issues with formatting getting in the way with validation.