Here you can find side projects of the staff and great projects which we think should get extra support. (Note that featured projects are not projects by staff members of MaxCoderz)
Moderator: MaxCoderz Staff
- Maxcoderz Staff
- Posts: 3075
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
I've been working on a little expression parser over the weekend. Given an input string in the format
Code: Select all
it will produce a floating-point value (10 in this case). The internal number cruncher is BBC BASIC's FPP
(so you would need BBC BASIC installed) and so all the features of BBC BASIC's FPP are provided either in the form of a function or an operator. The syntax is vaguely C-like with a few functions (min
) turned into operators (<?
) and a few additional operators (\
for integer division, >>>
for an unsigned right shift).
I suspect the technique is more useful than the implementation (especially given the dependency on BBC BASIC), so would anyone find it useful if I wrote this up?
Edit: Apparently not. Here's an archive of the source
with some documentation.
- Regular Member
- Posts: 88
- Joined: Sun 14 Sep, 2008 10:00 am
I was dreaming on making something like that. :p
I will see the code to see how is that made.