repo.or.cz
/
ooovba.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
merge the formfield patch from ooo-build
[ooovba.git]
/
toolkit
/
src2xml
/
source
/
macroparser_test.py
blob
a7064832d1f8f1ad41992b7a2711a442df45a6e6
1
#!/usr/bin/env python
2
3
import
macroparser
4
5
def
runParser
(
buf
):
6
mparser
=
macroparser
.
MacroParser
(
buf
)
7
mparser
.
debug
=
True
8
mparser
.
parse
()
9
10
def
main
():
11
buf
=
'FOO (asdfsdaf)'
12
runParser
(
buf
)
13
buf
=
'FOO (x, y) (x) + (y)'
14
runParser
(
buf
)
15
buf
=
'FOO(x, y) (x) + (y)'
16
runParser
(
buf
)
17
18
19
if
__name__
==
'__main__'
:
20
main
()