Index: trunk/flexbisonparse/wikiparse.y |
— | — | @@ -595,8 +595,9 @@ |
596 | 596 | |
597 | 597 | %% |
598 | 598 | |
599 | | -/* programs */ |
600 | | - |
| 599 | +/* main() -- this is called whenever you invoke the parser from the command line. You probably |
| 600 | + * do that only to test it, which is why we are outputting some extra information. It reads |
| 601 | + * standard input and writes to standard output. */ |
601 | 602 | int main() { |
602 | 603 | int result; |
603 | 604 | printf ("Parsing... "); |
— | — | @@ -607,6 +608,8 @@ |
608 | 609 | return result; |
609 | 610 | } |
610 | 611 | |
| 612 | +/* wikiparse_do_parse() -- this is the function that is actually called by PHP. It uses an |
| 613 | + * input string, and returns an output string. No stdin/stdout. */ |
611 | 614 | const char* wikiparse_do_parse (const char* input) |
612 | 615 | { |
613 | 616 | int result, i; |