Age | Commit message (Collapse) | Author |
|
The command structures will be changed, I think. I want the lexer to actually
lex the command names into tokens, then the parser and the engine can both use
them to update their state when necesarry. It will be less ambiguous and easier
for both sides to stay synchronized.
|
|
The main interactive interface doesn't work, and there's a lot left to do with
the unit tests, other command line options, etc. but it's pretty exciting.
I also still have to figure out how commands will work. I'm thinking they'll
be stored in an Expression and executed by the engine as normal.
|
|
|
|
|
|
|
|
There was an issue with order of operations outside of parenthesies,
easily solved.
|
|
Reads in a list of numbers on standard in, one per line, and sums them.
|
|
Other minor fixes and options such as --version being added.
|
|
|
|
Other minor bug fixes including scale issues, digit() access stopped a
digit before the final possible digit in the scale, >, >=, <, <= all
work correctly with mixed scale numbers now, probably other fixes.
|
|
|
|
You can tell it where to start now.
|
|
|
|
Both very handy. I'll add other numeric setters later, it was very
easy.
|
|
The command line options let you set the initial radix/scale, and
there's a function te test if any number is prime, that's fun.
|
|
...But primes in base 36 and it skips all numbers with digits in the
range 0-9
|
|
They weren't that random, the resize routine in PackedIntArray was
written poorly. It was growing too much and computing the size of the
original array incorrectly, so not all the data was being copied every
time.
|
|
|
|
|