Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Evaluating a maths expression in a string?

From: mat:eurogamer at: 29-Dec-2000 19:09

Heya Mat, MB> Mmm quite obvious really. MB> expression-string: "2 / 0" Next stage, it's natural for folks to enter expressions without white spaces. As rebol is a somewhat human illogical white-space sensitive language - this must be worked around. I was thinking, the easiest hack might be to replace +,-,* and / with + , " - ", " * " etc Sure it's going to result in redundant spaces if they DO put in spaces but it should work no? -- Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee http://www.eurogamer.net | http://www.eurogamer-network.com