office-gobmx/toolkit/src2xml/source/macroparser_test.py

21 lines
359 B
Python
Raw Normal View History

#!/usr/bin/env python
import macroparser
def runParser (buf):
mparser = macroparser.MacroParser(buf)
mparser.debug = True
mparser.parse()
def main ():
buf = 'FOO (asdfsdaf)'
runParser(buf)
buf = 'FOO (x, y) (x) + (y)'
runParser(buf)
buf = 'FOO(x, y) (x) + (y)'
runParser(buf)
if __name__ == '__main__':
main()