changeset 421 | 7e08b31e0dae |
child 427 | a7f5e6de19d2 |
420:b2f2f15cef26 | 421:7e08b31e0dae |
---|---|
1 "{ Package: 'stx:goodies/petitparser' }" |
|
2 |
|
3 PPParser subclass:#PPStartOfLineParser |
|
4 instanceVariableNames:'' |
|
5 classVariableNames:'' |
|
6 poolDictionaries:'' |
|
7 category:'PetitParser-Parsers' |
|
8 ! |
|
9 |
|
10 !PPStartOfLineParser methodsFor:'parsing'! |
|
11 |
|
12 parseOn: aPPContext |
|
13 (aPPContext isStartOfLine) ifTrue: [ |
|
14 ^ #startOfLine |
|
15 ]. |
|
16 ^ PPFailure message: 'Start of line expected' context: aPPContext at: aPPContext position |
|
17 ! ! |
|
18 |