Skip to content

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.

@johari johari requested review from ddunbar and dmbryson as code owners April 26, 2024 15:21
@johari johari marked this pull request as draft April 26, 2024 15:38
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