SwiftStudies / OysterKit

OysterKit is a framework that provides a native Swift scanning, lexical analysis, and parsing capabilities. In addition it provides a language that can be used to rapidly define the rules used by OysterKit called STLR
BSD 2-Clause "Simplified" License
178 stars 23 forks source link

pinned terms as regex #67

Closed wess closed 6 years ago

wess commented 6 years ago

Make pinned terms able to be regex like traditional lexers

SwiftStudies commented 6 years ago

The only thing that's made my shy away from RegEx so far is that there is a vision for Swift native RegEx support in the future, and a "fear of reimplementing". I would be interested in your thoughts.

Secondly... why only pinned terms?

wess commented 6 years ago

I would love to use this for writing a programming language, your example for Bork is nice, and I love the syntax, but it's a little harder to follow if I want to use this for a programming language

SwiftStudies commented 6 years ago

I really want to support you doing this and I'm going to prioritise this enhancement. I'd love to have someone to think through done of the issues with. Any chance we could connect over I message or twitter DM?

SwiftStudies commented 6 years ago

I've merged this into the mater branch. Seems to work well and it was a great enhancement

wess commented 6 years ago

You can ping me on telegram, or twitter. My usernames on both are @wesscope