powerlang / egg

Egg Smalltalk
MIT License
14 stars 2 forks source link

Don't forget to run the parser.. #68

Closed KenDickey closed 4 months ago

KenDickey commented 4 months ago

I was browsing code in a Cuis code browser but my simple Tonel parser choked on some code.

in "egg/modules/Kernel/LargeInteger.st":

vvv===vvv===vvv { #category : #unclassified } LargeInteger >> shortAtOffset: [ offset offset _isSmallInteger ifFalse: [^self outOfBoundsIndex: offset]. (0 <= offset and: [offset + 2 <= self _size]) ifFalse: [^self outOfBoundsIndex: offset]. ^self shortAtValidOffset: offset ] ^^^===^^^===^^^

I suspect the desired text for the second line is vvv===vvv===vvv LargeInteger >> shortAtOffset: offset [ ^^^===^^^===^^^------------------^^^^^^

I suspect other slips may exist.

HTH, -KenD