0ef878a5d3
2008/02/13 08:56:23 jcn 1.1.2.1: Import src2xml and doc/layout from GIT.
20 lines
359 B
Python
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()
|