1#!/usr/bin/env python 2 3r""" 4This package is not properly implemented. The \ifthenelse command simply 5returns the 'false' portion of the command. Hopefully, some day this will 6be done properly. 7 8""" 9 10from plasTeX import Command 11 12class ifthenelse(Command): 13 args = 'test:nox then:nox else' 14 15 class _not(Command): 16 macroName = 'not' 17 18 class _and(Command): 19 macroName = 'and' 20 21 class _or(Command): 22 macroName = 'or' 23 24 class NOT(Command): 25 pass 26 27 class AND(Command): 28 pass 29 30 class OR(Command): 31 pass 32 33 class openParen(Command): 34 macroName = '(' 35 36 class closeParen(Command): 37 macroName = ')' 38 39 class isodd(Command): 40 args = 'number:int' 41 42 class isundefined(Command): 43 args = 'command:str' 44 45 class equal(Command): 46 args = 'first second' 47 48 class lengthtest(Command): 49 args = 'test' 50 51 class boolean(Command): 52 args = 'name:str' 53 54class newboolean(Command): 55 args = 'name:str' 56 57class provideboolean(Command): 58 args = 'name:str' 59 60class setboolean(Command): 61 args = 'name:str value:str' 62 63class whiledo(Command): 64 args = 'test:nox operations' 65 66 67 68