office-gobmx/toolkit/src2xml/source/macroparser_test.py
Kurt Zenker 0ef878a5d3 INTEGRATION: CWS layout_DEV300 (1.1.2); FILE ADDED
2008/02/13 08:56:23 jcn 1.1.2.1: Import src2xml and doc/layout from GIT.
2008-03-06 10:56:04 +00:00

20 lines
359 B
Python

#!/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()