test-parser.cc File Reference

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

Include dependency graph for test-parser.cc:

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.


Function Documentation

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.

Here is the call graph for this function:


Variable Documentation

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"
NOTE: following test is highly incomplete and maybe outdated.

Definition at line 71 of file test-parser.cc.

Referenced by main().

char const* testName = "test-parser" [static]

Definition at line 68 of file test-parser.cc.

Referenced by main().


Generated on Sat Jul 4 18:33:01 2009 for vyp08 (compiler and interpreter of VYP08 language) by  doxygen 1.5.4