smalltalk
/
osmo-st-sip
Archived
1
0
Fork 0

grammar: Change code flow to reduce some bytecode that are executed

This commit is contained in:
Holger Hans Peter Freyther 2014-09-05 19:24:41 +02:00
parent 9fa9a7218f
commit 3f47d2f6b0
1 changed files with 3 additions and 7 deletions

View File

@ -65,19 +65,15 @@ PP.PPParser subclass: SIPQuotedStringParser [
ifTrue: [
aStream skip: 1.
parsed := true.
finish := true]
^text contents]
ifFalse: [
c = $\ ifTrue: [inQuote := true].
text nextPut: c.
aStream skip: 1.
finish := aStream atEnd]]].
^parsed
ifFalse: [
aStream pointer: aStartPointer.
PPFailure message: 'Expected closing quote' at: aStream position]
ifTrue: [
text contents].
aStream pointer: aStartPointer.
^PPFailure message: 'Expected closing quote' at: aStream position
]
parseOn: aStream [