talonvoice / beta

Issue tracker for the private Talon Beta
10 stars 0 forks source link

allow default implementations within module captures #25

Closed kitlangton closed 4 years ago

kitlangton commented 4 years ago

Just as we can add default implementations for actions, perhaps we could allow default implementations for captures:

@mod.capture(rule='{self.types}')
def haskell_type(m):
   """Returns the given Haskell type"""
   return m.types[0]
lunixbochs commented 4 years ago

fixed in next release