swiftlang / swift-experimental-string-processing

An early experimental general-purpose pattern matching engine for Swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add builtin character class atoms to the DSL tree

hamishknight opened this issue · comments

For the following escape builtins:

  • graphemeCluster
  • whitespace
  • decimalDigit
  • horizontalWhitespace
  • newlineSequence
  • verticalTab
  • wordCharacter

We currently form DSL character classes using their unconverted AST atoms. We ought to have DSL representations for them, perhaps under an e.g BuiltinCharacterClass type.

This could also be done alongside migrating them off consumers and onto dedicated instructions in byte code gen

Lily has a PR for this #547

commented

Fixed in #547