Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

First steps with Marpa::R2 and BNF

by Discipulus (Canon)
on Jan 13, 2021 at 13:35 UTC ( [id://11126847]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    3d6        # simplest one
    3d6+3      # with a result modifier
    ...
    3d8rgt6    # reroll and discard any greater than 6
    3d8rgt6+2  # reroll and discard any greater than 6 and add +2 to the f
    +inal result
    
  2. or download this
    # 3d8r1
    modifier_r received: ({}, { die_type => "1d8", rolls => [8, 1, 7] }, "
    +r", 1)
    
    # 3d8rgt1
    modifier_r received: ({}, { die_type => "1d8", rolls => [4, 8, 1] }, "
    +r", "gt", 1)
    
  3. or download this
    use Marpa::R2;
    use Data::Dump;
    ...
        return $return;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11126847]
Approved by LanX
Front-paged by hippo
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-03-29 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found