Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Using overload to parse arithmetic terms

by blokhead (Monsignor)
on Feb 07, 2006 at 14:41 UTC ( #528524=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Op;
    sub new {
    ...
    @ISA = qw[Op];
    sub precedence { 100 }
    sub display { $_[0][0] }
    
  2. or download this
    Op::Multiplication->new(
      Op::Term->new(5),
    ...
      )
    )->display;
    # 5 + 6 * 7
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://528524]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2014-04-19 00:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (473 votes), past polls