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

#fmt syntax extension #246

Closed
wants to merge 18 commits into from
Closed

#fmt syntax extension #246

wants to merge 18 commits into from

Conversation

brson
Copy link
Contributor

@brson brson commented Mar 2, 2011

Graydon,

I've translated the #fmt syntax extension to rustc. It currently builds but doesn't pass tests. The AST it builds depends on vector addition and calls into std, neither of which work yet. Once those are completed I'm interested in fleshing this out and adding tests.

I'd particularly like you to review how I've interpreted the expr_ext AST node, to which I added a new expression parameter. I'm using it as expr_ext(path, argument_exprs, body_expr, expanded_expr, ann). The arguments and body parameters are used by the extension to generate the expanded expression, and only the expanded expression is folded and translated. The 'body' expression isn't used by #fmt.

@brson
Copy link
Contributor Author

brson commented Mar 2, 2011

I forgot, I also added a file pretty.rs to the frontend which does a very small amount of AST pretty printing that I've been using in lieu of working unit tests. I can remove that from the branch if you like.

@brson
Copy link
Contributor Author

brson commented Mar 2, 2011

I just noticed that I accidentally turned TRACK_ALLOCATIONS on. I'll fix that tonight.

keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this pull request Dec 12, 2017
unix: Add openpty(3) and forkpty(3) for non-Apple platforms

The functions were added for Apple in rust-lang#202. Adding them to other
platforms was pending an amendment to RFC 1291 to expand the scope of
libc to include libutil. The amendment was merged as
  rust-lang/rfcs#1529
rchaser53 pushed a commit to rchaser53/rust that referenced this pull request Jan 19, 2019
djtech-dev pushed a commit to djtech-dev/rust that referenced this pull request Dec 9, 2021
…ig-file

Upgrade to GitHub-native Dependabot
workingjubilee pushed a commit to workingjubilee/rustc that referenced this pull request Jul 20, 2022
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this pull request Mar 7, 2023
matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this pull request Mar 7, 2023
This pull request was closed.
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