r5309 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r5308‎ | r5309 | r5310 >
Date:23:30, 19 September 2004
Author:timwi
Status:old
Tags:
Comment:
commentary
Modified paths:
  • /trunk/flexbisonparse/wikiparse.y (modified) (history)

Diff [purge]

Index: trunk/flexbisonparse/wikiparse.y
@@ -595,8 +595,9 @@
596596
597597 %%
598598
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. */
601602 int main() {
602603 int result;
603604 printf ("Parsing... ");
@@ -607,6 +608,8 @@
608609 return result;
609610 }
610611
 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. */
611614 const char* wikiparse_do_parse (const char* input)
612615 {
613616 int result, i;

Status & tagging log