| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
|
|
| |
Take out using slab vectors as a stack allocator.
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
|
|
| |
This simplifies code and removes edge cases.
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
|
|
|
|
| |
These have to do with pexpect being flaky, so I changed history.sh to
run the tests three times, and if it succeeds any of those times, the
test passes.
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This changes it to use a command-line option. This is best because if a
user encounters a problem; they *know* they are using my bc and can add
the command-line option.
This is also better because it allows the keyword to be used as variable
and array names as well as function names, without editing the script.
This has the double advantage that I can undo the change to the parser,
though I need to keep the one line change to the lexer.
The option is `-r` and `--redefine`, and they take an argument, which is
the keyword to redefine.
All docs and tests have been updated.
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The keyword definition feature was committed in the previous two
commits. This commit makes the bc manual match.
Oh, part of the information is a blurb at the top saying that if this bc
fails to parse a script for another bc, to define the environment
variable BC_REDEFINE_KEYWORDS to 1 and try again. This is to make it
easy for frustrated users to find a solution to their problem.
Yes, it is hidden behind an environment variable. This is because I
*don't* want this behavior to be default.
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
|
|
| |
Yay! I finished commenting the code!
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
|
|
| |
This finishes the comments in the math code.
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
|
|
|
| |
This commit also gets rid of some unused code that was discovered to be
unused because of the documentation work.
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
|
|
|
| |
This is as far as I will go right now. History is not really affecting
the coverage anymore.
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
|
|
| |
I also renamed a bunch of it.
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
|
|
|
|
|
| |
This bug fix also made things much simpler. What it does is allow the
lexers to ask for more data from stdin when needed, like when a string
or comment is not ended properly. The dc bug was that it just didn't
work well with register commands.
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
|
|
| |
Also, add the plumbing for help to print defaults.
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
|
|
| |
This also removes an unused file.
Signed-off-by: Gavin Howard <gavin@yzena.com>
|
|
|
|
| |
Signed-off-by: Gavin Howard <gavin@yzena.com>
|