Skip to content

Commit

Permalink
Restore prefix:<=> to provide a useful error message (moritz++)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Apr 21, 2009
1 parent 0e73267 commit 69b3180
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/classes/IO.pir
Expand Up @@ -41,6 +41,23 @@ Reads a line from the file handle.
.end


=back

=head2 Functions

=over 4

=item C<prefix:=(IO $io)>

Gets the iterator for the IO object.

=cut

.namespace []
.sub 'prefix:=' :multi('IO')
'die'("prefix:<=> has been superseeded by $handle.lines and $handle.get")
.end
=back
=head1 IOIterator
Expand Down
1 change: 1 addition & 0 deletions src/parser/grammar-oper.pg
Expand Up @@ -20,6 +20,7 @@ proto prefix:<!> is equiv(prefix:<+>) { ... }
proto prefix:<+^> is equiv(prefix:<+>)
is pirop('bnot')
{ ... }
proto prefix:<=> is equiv(prefix:<+>) { ... }
proto prefix:<^> is equiv(prefix:<+>) { ... }
proto prefix:<\> is equiv(prefix:<+>) { ... }
proto prefix:<|> is equiv(prefix:<+>) { ... }
Expand Down

0 comments on commit 69b3180

Please sign in to comment.