equal
deleted
inserted
replaced
1 "{ Package: 'stx:goodies/petitparser' }" |
1 "{ Package: 'stx:goodies/petitparser' }" |
|
2 |
|
3 "{ NameSpace: Smalltalk }" |
2 |
4 |
3 PPParser subclass:#PPStartOfLineParser |
5 PPParser subclass:#PPStartOfLineParser |
4 instanceVariableNames:'' |
6 instanceVariableNames:'' |
5 classVariableNames:'' |
7 classVariableNames:'' |
6 poolDictionaries:'' |
8 poolDictionaries:'' |
7 category:'PetitParser-Parsers' |
9 category:'PetitParser-Parsers' |
8 ! |
10 ! |
|
11 |
9 |
12 |
10 !PPStartOfLineParser methodsFor:'parsing'! |
13 !PPStartOfLineParser methodsFor:'parsing'! |
11 |
14 |
12 parseOn: aPPContext |
15 parseOn: aPPContext |
13 (aPPContext isStartOfLine) ifTrue: [ |
16 (aPPContext isStartOfLine) ifTrue: [ |
14 ^ #startOfLine |
17 ^ #startOfLine |
15 ]. |
18 ]. |
16 ^ PPFailure message: 'Start of line expected' context: aPPContext at: aPPContext position |
19 ^ PPFailure message: 'Start of line expected' context: aPPContext at: aPPContext position |
17 ! ! |
20 ! ! |
18 |
21 |
|
22 !PPStartOfLineParser class methodsFor:'documentation'! |
|
23 |
|
24 version_HG |
|
25 |
|
26 ^ '$Changeset: <not expanded> $' |
|
27 ! ! |
|
28 |