Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions PetitParser2-Tests/PP2SeaParserTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@ PP2SeaParserTest >> seaInstance [
^ PP2SeaNode new
]

{ #category : #tests }
PP2SeaParserTest >> testCaseInsensitiveSea [
| sea parser |

sea := self seaInstance island: 'ISLAND' asPParser caseInsensitive.
parser := sea.

self assert: parser parse: 'SEA island SEA'.
self assert: self result size equals: 3.

self assert: parser fail: 'SEA nothin here SEA'.

]

{ #category : #tests }
PP2SeaParserTest >> testNestedBlockDeepNested [
| block |
Expand Down
5 changes: 3 additions & 2 deletions PetitParser2/PP2NextSetsVisitor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Class {
'nextSets',
'currentNext'
],
#category : 'PetitParser2-Analysis'
#category : #'PetitParser2-Analysis'
}

{ #category : #accessing }
Expand Down Expand Up @@ -172,7 +172,8 @@ PP2NextSetsVisitor >> visitOptional: node [

{ #category : #visiting }
PP2NextSetsVisitor >> visitPP2Node: node [
self error: 'should provide specific implementation'
"self error: 'should provide specific implementation'"
self visitDelegate: node
]

{ #category : #visiting }
Expand Down