|
Line 0
Link Here
|
|
|
1 |
--- SeParse.y.orig Mon Dec 29 07:24:02 2003 |
| 2 |
+++ SeParse.y Mon Dec 29 07:28:38 2003 |
| 3 |
@@ -81,19 +81,19 @@ |
| 4 |
{ |
| 5 |
char long_line[1000]; |
| 6 |
|
| 7 |
- char input_str[] = "This(is, a, real, funky); script(); |
| 8 |
- Scripts(); Can(be); Multi(Line, \"Can't they?\"); |
| 9 |
- Commas(are, no, longer, optional, inside, arglists); |
| 10 |
- Scripts(); Can(); contain(\"tabs \\t and backspaces \\b\"); |
| 11 |
- As(\"Well\\ as Quoted Strings\", and, '\"Quoted Strings inside |
| 12 |
- quoted strings\"'); |
| 13 |
- esc(can, appear, outside, strings, ^z, \\012\\015\\n); |
| 14 |
- But(parenthesis, should, match); |
| 15 |
- We(\"have a funny way of specifying \\012 chars and even)\"); |
| 16 |
- backslashes( \" \\\\ \"); |
| 17 |
- new(\"in this version are ^m and ^A ctr-escapes, as in ^S^Q\"); |
| 18 |
- The(next, line, will, give, a, syntax, error, because, it, has, two, adj, functions, |
| 19 |
- without, a, separating, semicolon); |
| 20 |
+ char input_str[] = "This(is, a, real, funky); script();\n\ |
| 21 |
+ Scripts(); Can(be); Multi(Line, \"Can't they?\");\n\ |
| 22 |
+ Commas(are, no, longer, optional, inside, arglists);\n\ |
| 23 |
+ Scripts(); Can(); contain(\"tabs \\t and backspaces \\b\");\n\ |
| 24 |
+ As(\"Well\\ as Quoted Strings\", and, '\"Quoted Strings inside\n\ |
| 25 |
+ quoted strings\"');\n\ |
| 26 |
+ esc(can, appear, outside, strings, ^z, \\012\\015\\n);\n\ |
| 27 |
+ But(parenthesis, should, match);\n\ |
| 28 |
+ We(\"have a funny way of specifying \\012 chars and even)\"); \n\ |
| 29 |
+ backslashes( \" \\\\ \");\n\ |
| 30 |
+ new(\"in this version are ^m and ^A ctr-escapes, as in ^S^Q\");\n\ |
| 31 |
+ The(next, line, will, give, a, syntax, error, because, it, has, two, adj, functions,\n\ |
| 32 |
+ without, a, separating, semicolon);\n\ |
| 33 |
End() script()"; |
| 34 |
|
| 35 |
printf("------ String to parse: \n%s\n\n---- Parsing begins:\n", input_str); |