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

Various AST cleanups related to removing invisible tokens #220

Merged
merged 4 commits into from
Mar 15, 2023

Conversation

c42f
Copy link
Member

@c42f c42f commented Mar 15, 2023

  • Use distinct kind for juxtaposition. This allows us to easily distinguish
    juxtaposition syntax from explicit multiplication.
  • struct and mutable struct are distinguished with flags not children
  • module and baremodule are distinguished with flags not children
  • return now parses with empty children rather than with an invisible
    K"nothing" as the only child.

Fixes most of #219

c42f added 2 commits March 15, 2023 14:10
`return` can have zero arguments - indicate this with empty children,
rather than with an invisible `K"nothing"` token.
@c42f c42f changed the title Various AST cleanups related removing invisible tokens Various AST cleanups related to removing invisible tokens Mar 15, 2023
@codecov
Copy link

codecov bot commented Mar 15, 2023

Codecov Report

Merging #220 (9eb28b2) into main (e4f08c4) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #220      +/-   ##
==========================================
- Coverage   96.32%   96.30%   -0.03%     
==========================================
  Files          15       15              
  Lines        3863     3869       +6     
==========================================
+ Hits         3721     3726       +5     
- Misses        142      143       +1     
Impacted Files Coverage Δ
src/kinds.jl 78.78% <ø> (ø)
src/syntax_tree.jl 94.84% <ø> (-0.06%) ⬇️
src/expr.jl 100.00% <100.00%> (ø)
src/hooks.jl 80.00% <100.00%> (ø)
src/parse_stream.jl 96.23% <100.00%> (+0.05%) ⬆️
src/parser.jl 97.89% <100.00%> (-0.07%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@c42f c42f force-pushed the c42f/bump-invisible-cleanup branch from e731be2 to 0da52d3 Compare March 15, 2023 06:18
This allows us to easily distinguish juxtaposition syntax from explicit
multiplication.
@c42f c42f force-pushed the c42f/bump-invisible-cleanup branch from 0da52d3 to 805e2c8 Compare March 15, 2023 08:10
Various AST cleanups:

* `struct` and `mutable struct` are distinguished with flags not children

* `module` and `baremodule` are distinguished with flags not children

* `return` now parses with empty children rather than with an invisible
  K"nothing" as the only child.
@c42f c42f force-pushed the c42f/bump-invisible-cleanup branch from 805e2c8 to 9eb28b2 Compare March 15, 2023 08:20
@c42f c42f merged commit 2720980 into main Mar 15, 2023
@c42f c42f deleted the c42f/bump-invisible-cleanup branch March 15, 2023 23:52
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.

1 participant