summaryrefslogtreecommitdiff
path: root/parserhelp.txt
diff options
context:
space:
mode:
Diffstat (limited to 'parserhelp.txt')
-rw-r--r--parserhelp.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/parserhelp.txt b/parserhelp.txt
new file mode 100644
index 0000000..0da866c
--- /dev/null
+++ b/parserhelp.txt
@@ -0,0 +1,21 @@
1All commands start with a '\'. The following commands are defined:
2 \help, \h, \? - This help
3 \exit, \quit - Exit the program
4 \radix - Display the current radix (base)
5 \radix <num> - Set the radix to anything between 2 and 36 (inclusive)
6 \scale - Display the current scale
7 \scale <num> - Set the current scale
8 \vars - List all defined variables
9
10All variables must prefixed with a $ but otherwise can be used anywhere a
11number can be used. To assign a variable use =, i.e.:
12 $amnt = $rate * 144000.09
13
14When using a radix greater than 10 all extended digits are lowercase letters
15starting with 'a'. Upper case is not currently supported.
16
17All numeric command parameters (i.e. \scale, \radix) are in base 10 no
18matter what radix is currently set. These are also displayed in base 10
19at all times.
20
21Changing the radix always clears all variables.