Browse Subversion Repository
Contents of /trunk/src/Module_wx/new/a.gura
Parent Directory
| Revision Log
| 1 |
import(re)
|
| 2 |
|
| 3 |
search(fileName:string):map = {
|
| 4 |
stat = `start
|
| 5 |
readlines(fileName).each() {|line|
|
| 6 |
if (stat == `start) {
|
| 7 |
if (m = line.match(r'Gura_ImplementFunction\((\w+)')) {
|
| 8 |
stat = `function
|
| 9 |
} elsif (m = line.match(r'Gura_ImplementMethod\((\w+),\s*(\w+)')) {
|
| 10 |
stat = `method
|
| 11 |
}
|
| 12 |
} elsif (stat == `function) {
|
| 13 |
if (line.match(r'^#if\s+0')) {
|
| 14 |
printf("'%s'\n", m.group(1))
|
| 15 |
} elsif (line.match(r'^}')) {
|
| 16 |
stat = `start
|
| 17 |
}
|
| 18 |
} elsif (stat == `method) {
|
| 19 |
if (line.match(r'^#if\s+0')) {
|
| 20 |
//printf("'%s.%s'\n", m.group(1).replace('wx_', 'wx'), m.group(2))
|
| 21 |
} elsif (line.match(r'^}')) {
|
| 22 |
stat = `start
|
| 23 |
}
|
| 24 |
}
|
| 25 |
}
|
| 26 |
}
|
| 27 |
search(path.glob('*.cpp'))
|
|