Skip to content

Working on #if directives, Part I. #25

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

Merged
merged 10 commits into from
Jul 18, 2023
Merged

Working on #if directives, Part I. #25

merged 10 commits into from
Jul 18, 2023

Conversation

TuringKi
Copy link
Owner

@TuringKi TuringKi commented Jul 12, 2023

This PR made significant changes to the parser to meet the syntax parsing requirements of the #if directive const expression:

  1. Added a RecursiveParseFunctions class to fix errors for recursive syntax patterns.
  2. Implemented a simple algorithm that models the syntax construction process as generating Lines, which are then used to generate the AST Tree.

@TuringKi TuringKi linked an issue Jul 12, 2023 that may be closed by this pull request
@TuringKi TuringKi force-pushed the 20-if-directive branch 2 times, most recently from bfed771 to 4e65bef Compare July 13, 2023 15:54
@TuringKi TuringKi force-pushed the 20-if-directive branch 4 times, most recently from 9d271ef to fbbef99 Compare July 18, 2023 03:56
@TuringKi TuringKi changed the title Working on #if directives. Working on #if directives, Part I. Jul 18, 2023
@TuringKi TuringKi linked an issue Jul 18, 2023 that may be closed by this pull request
@TuringKi
Copy link
Owner Author

bors r+

@bors
Copy link
Contributor

bors bot commented Jul 18, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit 2a70309 into main Jul 18, 2023
@TuringKi TuringKi deleted the 20-if-directive branch July 18, 2023 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Grow basic AST from the ParseFunctions.
1 participant