Skip to content

Commit

Permalink
Merge pull request #40 from moosetechnology/development
Browse files Browse the repository at this point in the history
Integrate better deprecation in PetitIsland
  • Loading branch information
juliendelplanque authored Feb 4, 2019
2 parents 7fd5ee2 + cdda303 commit 5faf58d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# PetitParser [![Build Status](https://travis-ci.org/moosetechnology/PetitParser.svg?branch=master)](https://travis-ci.org/moosetechnology/PetitParser)
# PetitParser [![Build Status](https://travis-ci.org/moosetechnology/PetitParser.svg?branch=development)](https://travis-ci.org/moosetechnology/PetitParser)
Petit Parser is a framework for building parsers.

The version of PetitParser on this repository is supported by Pharo 6.1 and Pharo 7. To use it with older Pharo version, please refer to the [Smalltalkhub repository](http://smalltalkhub.com/#!/~Moose/PetitParser).
Expand Down
10 changes: 8 additions & 2 deletions src/PetitIslands/PPParser.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,19 @@ PPParser >> isWater [

{ #category : #'*petitislands' }
PPParser >> island [
self deprecated: 'use sea instead'.
self
deprecated: 'Use #sea instead.'
transformWith: '`@receiver island'
-> '`@receiver sea'.
^ self sea
]

{ #category : #'*petitislands' }
PPParser >> island: water [
self halt: 'deprecated'.
self
deprecated: 'Use #sea: instead.'
transformWith: '`@receiver island: `@argument'
-> '`@receiver sea: `@argument'.
^ self sea: water
]

Expand Down

0 comments on commit 5faf58d

Please sign in to comment.