changeset 377 | 6112a403a52d |
376:a2656b27cace | 377:6112a403a52d |
---|---|
1 "{ Package: 'stx:goodies/petitparser' }" |
|
2 |
|
3 PPParser subclass:#PPStartOfLine |
|
4 instanceVariableNames:'' |
|
5 classVariableNames:'' |
|
6 poolDictionaries:'' |
|
7 category:'PetitParser-Parsers' |
|
8 ! |
|
9 |
|
10 !PPStartOfLine 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 |