summaryrefslogtreecommitdiffstats
path: root/libtommath/tombc/grammar.txt
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-11-17 09:33:08 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-11-17 09:33:08 (GMT)
commit3dd86e6ebc0137c3a2c02d3a046de046571e3789 (patch)
tree35b2bff1dacfd4df26ddb432a0a6cf722b7de720 /libtommath/tombc/grammar.txt
parent29606e4a7b43adb9f923fb5781d3b9a93d9ba1c8 (diff)
parent0be726feecac0c0515760b48dd64f435024dd908 (diff)
downloadtcl-3dd86e6ebc0137c3a2c02d3a046de046571e3789.zip
tcl-3dd86e6ebc0137c3a2c02d3a046de046571e3789.tar.gz
tcl-3dd86e6ebc0137c3a2c02d3a046de046571e3789.tar.bz2
Remove subdirectories of "libtommath", and various individual related files, not taking any part in the Tcl build. Makes the Tcl distribution smaller without sacrificing anything.
And remove the TCL_TOMMATH define, which was never used for anything.
Diffstat (limited to 'libtommath/tombc/grammar.txt')
-rw-r--r--libtommath/tombc/grammar.txt35
1 files changed, 0 insertions, 35 deletions
diff --git a/libtommath/tombc/grammar.txt b/libtommath/tombc/grammar.txt
deleted file mode 100644
index a780e75..0000000
--- a/libtommath/tombc/grammar.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-program := program statement | statement | empty
-statement := { statement } |
- identifier = numexpression; |
- identifier[numexpression] = numexpression; |
- function(expressionlist); |
- for (identifer = numexpression; numexpression; identifier = numexpression) { statement } |
- while (numexpression) { statement } |
- if (numexpresion) { statement } elif |
- break; |
- continue;
-
-elif := else statement | empty
-function := abs | countbits | exptmod | jacobi | print | isprime | nextprime | issquare | readinteger | exit
-expressionlist := expressionlist, expression | expression
-
-// LR(1) !!!?
-expression := string | numexpression
-numexpression := cmpexpr && cmpexpr | cmpexpr \|\| cmpexpr | cmpexpr
-cmpexpr := boolexpr < boolexpr | boolexpr > boolexpr | boolexpr == boolexpr |
- boolexpr <= boolexpr | boolexpr >= boolexpr | boolexpr
-boolexpr := shiftexpr & shiftexpr | shiftexpr ^ shiftexpr | shiftexpr \| shiftexpr | shiftexpr
-shiftexpr := addsubexpr << addsubexpr | addsubexpr >> addsubexpr | addsubexpr
-addsubexpr := mulexpr + mulexpr | mulexpr - mulexpr | mulexpr
-mulexpr := expr * expr | expr / expr | expr % expr | expr
-expr := -nexpr | nexpr
-nexpr := integer | identifier | ( numexpression ) | identifier[numexpression]
-
-identifier := identifer digits | identifier alpha | alpha
-alpha := a ... z | A ... Z
-integer := hexnumber | digits
-hexnumber := 0xhexdigits
-hexdigits := hexdigits hexdigit | hexdigit
-hexdigit := 0 ... 9 | a ... f | A ... F
-digits := digits digit | digit
-digit := 0 ... 9