Prev: 28311 Up: Map Next: 28487
28464: Input: Classify Punctuation
Used by the routine at Input_TakeTheNextWord.
Turns a full stop, comma or quote into the class being matched the parser expects.
Input_ClassifyPunctuation 28464 LD B,176 Take class 176, and jump to Input_ClassifyPunctuation_StepAlongTheInputBuffer if this character is a full stop.
28466 CP 46
28468 JR Z,Input_ClassifyPunctuation_StepAlongTheInputBuffer
28470 LD B,160 Take class 160, and jump to Input_ClassifyPunctuation_StepAlongTheInputBuffer if this character is a comma.
28472 CP 44
28474 JR Z,Input_ClassifyPunctuation_StepAlongTheInputBuffer
28476 CP 34 Return unless this character is a quote.
28478 RET NZ
28479 LD B,144 A quote uses class 144.
Input_ClassifyPunctuation_StepAlongTheInputBuffer 28481 INC HL Step to the next byte of the input buffer.
28482 LD A,B Take the punctuation class into A.
28483 LD BC,0 Start from a clear pointer.
28486 RET Return.
View the equivalent code in;
Prev: 28311 Up: Map Next: 28487