Skip to content

Commit

Permalink
MCScannerTest now passes.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Foster committed Aug 18, 2019
1 parent 2ea5541 commit cae49cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Monticello/MCScanner.class.st
Expand Up @@ -45,7 +45,7 @@ MCScanner >> next [
"For an array, start a new level on the stack"
c = $( ifTrue: [ stream next. stack push: Stack new ] ifFalse: [
"At the end of an array, so add it to the previous level"
c = $) ifTrue: [ | x | x := stack pop. stack top push: x asArray reverse ] ifFalse: [
c = $) ifTrue: [ | x | stream next. x := stack pop. stack top push: x asArray reverse ] ifFalse: [
"Unexpected token"
self error: 'Unknown token type' ]]]].
"Keep looping while we are in an array"
Expand Down

0 comments on commit cae49cb

Please sign in to comment.