#include "config.h"
#include "parser.h"
#include "vypIO.h"

Go to the source code of this file.
Classes | |
| class | TestBuilder |
Functions | |
| int | main (int argc, char *argv[]) |
Variables | |
| static char const * | testName = "test-parser" |
| static char const * | testContent |
| NOTE: following test is highly incomplete and maybe outdated. | |
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 96 of file test-parser.cc.
References ScannerFactory::createScanner(), Color::enable(), Parser::parse(), testContent, and testName.

char const* testContent [static] |
Initial value:
"var\n\ int glInt,\n\ double glDouble,\n\ string glString\n\ \n\ void f();\n\ double toDouble(string);\n\ string strcat(string;string);\n\ int main(int argc;string argv) {\n\ f();\n\ main := 1.2e-3 - argc - toDouble(argv);\n\ }\n\ \n\ string strcat(string a; string b)var string c;\n\ {\n\ while a + b eq a+b {\n\ c := a + b;\n\ if \"\" <= c {\n\ strcat := main(0,c);\n\ } else {\n\ strcat := strcat(c,a+b);\n\ };\n\ };\n\ }\n"
Definition at line 71 of file test-parser.cc.
Referenced by main().
char const* testName = "test-parser" [static] |
1.5.4