lewissmallwood

BNF Mathematical Operations

Feb 6th, 2016
693
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <digit> ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
  2.  
  3. <positive int> ::= <digit> | <digit><positive int>
  4. <positive float> ::= <positive int> | <positive int> . <positive int>
  5. <valid number> ::= <positive float> | -<positive float>
  6.  
  7. <whitespace> ::= " " <whitespace> | ""
  8. <arithmetic operator> ::= + | - | ÷ | x | *
  9. <user input> ::= <valid number><arithmetic operator><valid number>|<valid number><whitespace><arithmetic operator><whitespace><valid number>
  10. <computer output> ::= <valid number>
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×