SmaCCRefactoring / SmaCC

Smalltalk Compiler Compiler : a parser generator
Other
32 stars 15 forks source link

Existing method matching miss some methods #23

Closed ThierryGoubier closed 7 years ago

ThierryGoubier commented 7 years ago

SmaCCSmalltalkCodeGenerator>>#findExistingMethodFor: is unable to match certain methods. For example, this code:

liftFirstValue: aCollection
    ^ aCollection first

Can't be written as a semantic action (one can only write { '1' })

ThierryGoubier commented 7 years ago

Allow the ability to scan through all inherited methods (if first fail).

May require a evaluation of how much it costs (but, even for large grammars, the number of semantic actions is reasonable).

ThierryGoubier commented 7 years ago

Closed by b0d3caf