mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
propagate from branch 'au.asn.ucc.matt.ltm.dropbear' (head 6c790cad5a7fa866ad062cb3a0c279f7ba788583)
to branch 'au.asn.ucc.matt.dropbear' (head fff0894a0399405a9410ea1c6d118f342cf2aa64) --HG-- extra : convert_revision : fdf4a7a3b97ae5046139915de7e40399cceb2c01
This commit is contained in:
35
libtommath/tombc/grammar.txt
Normal file
35
libtommath/tombc/grammar.txt
Normal file
@@ -0,0 +1,35 @@
|
||||
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
|
||||
Reference in New Issue
Block a user