equal
deleted
inserted
replaced
2074 !Scanner methodsFor:'initialization'! |
2074 !Scanner methodsFor:'initialization'! |
2075 |
2075 |
2076 initialize |
2076 initialize |
2077 "initialize the scanner" |
2077 "initialize the scanner" |
2078 |
2078 |
|
2079 <modifier: #super> "must be called if redefined" |
|
2080 |
2079 errorFlag := false. |
2081 errorFlag := false. |
2080 tokenPosition := 1. |
2082 tokenPosition := 1. |
2081 tokenLineNr := lineNr := 1. |
2083 tokenLineNr := lineNr := 1. |
2082 currentComments := nil. |
2084 currentComments := nil. |
2083 "/ allow for these to be already set (kludge) |
2085 "/ allow for these to be already set (kludge) |
2093 |
2095 |
2094 "/ not used here, but eases subclassing for other languages. |
2096 "/ not used here, but eases subclassing for other languages. |
2095 scanColonAsKeyword isNil ifTrue:[ scanColonAsKeyword := true ]. |
2097 scanColonAsKeyword isNil ifTrue:[ scanColonAsKeyword := true ]. |
2096 self initializeActionTable. |
2098 self initializeActionTable. |
2097 |
2099 |
2098 "Modified (comment): / 05-10-2011 / 09:22:46 / cg" |
2100 "Modified: / 08-02-2017 / 00:31:22 / cg" |
2099 ! |
2101 ! |
2100 |
2102 |
2101 initializeActionTable |
2103 initializeActionTable |
2102 actionArray := self class actionArray. |
2104 actionArray := self class actionArray. |
2103 unicodeActions := self class unicodeActions. |
2105 unicodeActions := self class unicodeActions. |