xamarin / binding-tools-for-swift

MIT License
157 stars 21 forks source link

Fixed a parsing error in Dyck expressions #795

Closed stephen-hawley closed 9 months ago

stephen-hawley commented 9 months ago

Added missing operators to the standard list to stop parse errors where there is inline code that uses these. This fixes issue 793.

As background, a Dyck expression is any expression which consists of arbitrary token that may be surrounded by balanced sets of a bracketing tokens. Inline functions and default values in Swift may have very complicated expressions, but we don't care at all about these, so we can get away with writing these of as a Dyck expression, of which the Swift language is a subset.