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

[DO NOT MERGE] Add BashExpr #197

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

[DO NOT MERGE] Add BashExpr #197

wants to merge 1 commit into from

Conversation

johari
Copy link
Member

@johari johari commented Apr 26, 2024

A subset of Bash on top of Swift.

I'm thinking about implementing [MemoizedBashExpr.swift](https://github.com/apple/swift-llbuild2/compare/bash-expr?expand=1#diff-7095f25a6ac8f1229c6ca185a1ed9557f3453d14705e19d22b085c1c2c4a6503) on top of llbuild2fx keys.

I'm not intending to merge this yet because it is introducing new package dependencies to llbuild2.

expr: .error(
.unexpectedToken(
"\(children.first), expected .literal($)",
NSRange(location: 0, length: 0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NSRange is a very strange type for Swift and should be avoided. Range<Int> sounds like the better choice here, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm.. Possibly. The location and length parameters are bogus too.

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.

2 participants