Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ed94 opened this issue Aug 26, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Ed94
Copy link
Owner

Ed94 commented Aug 26, 2023

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.

@Ed94 Ed94 added help wanted Extra attention is needed enhancement New feature or request and removed help wanted Extra attention is needed labels Aug 26, 2023
@Ed94 Ed94 moved this to Todo in gencpp roadmap Sep 12, 2023
@Ed94 Ed94 added this to the Core Feature Complete milestone Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant