[system] / trunk / pg / lib / Parser.pm Repository:
ViewVC logotype

Diff of /trunk/pg/lib/Parser.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2678 Revision 2682
224 } else { 224 } else {
225 $name = $context->{operators}{' '}{string} 225 $name = $context->{operators}{' '}{string}
226 if $name eq ' ' or $name eq $context->{operators}{' '}{space}; 226 if $name eq ' ' or $name eq $context->{operators}{' '}{space};
227 $self->pushOperator($name,$op->{precedence}); 227 $self->pushOperator($name,$op->{precedence});
228 } 228 }
229 } elsif ($ref || $self->state ne 'fn') {$self->Op($name,$ref)} 229 } elsif (($ref && $name ne ' ') || $self->state ne 'fn') {$self->Op($name,$ref)}
230 } 230 }
231 } else { 231 } else {
232 $name = 'u'.$name, $op = $context->{operators}{$name} 232 $name = 'u'.$name, $op = $context->{operators}{$name}
233 if ($op->{type} eq 'both' && defined $context->{operators}{'u'.$name}); 233 if ($op->{type} eq 'both' && defined $context->{operators}{'u'.$name});
234 if ($op->{type} eq 'unary' && $op->{associativity} eq 'left') { 234 if ($op->{type} eq 'unary' && $op->{associativity} eq 'left') {
285# If the parens can't be removed, or if the operand is a list 285# If the parens can't be removed, or if the operand is a list
286# Make the operand into a list object 286# Make the operand into a list object
287# Replace the paren object with the operand 287# Replace the paren object with the operand
288# If the parentheses are used for function calls and the 288# If the parentheses are used for function calls and the
289# previous stack object is a function call, do the function apply 289# previous stack object is a function call, do the function apply
290# Otherwise if the parens can form Intervals, do so
290# Otherwise report an appropriate error message 291# Otherwise report an appropriate error message
291# 292#
292# A function: 293# A function:
293# Report an error message about missing inputs 294# Report an error message about missing inputs
294# 295#
295# An operator: 296# An operator:

Legend:
Removed from v.2678  
changed lines
  Added in v.2682

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9