Skip to content

Strip all unnecessary formatting when constructing content string for unvalidated code. #30

@Ed94

Description

@Ed94

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions