added .ptx->.o genreation routines. experimental

This commit is contained in:
Evghenii
2014-01-06 14:38:27 +01:00
parent 18a50aa679
commit 79ebf07882
10 changed files with 2872 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#include <cstdio>
#include <iostream>
#include <fstream>
#include <cassert>
#include "PTXParser.h"
int main(int argc, char * argv[])
{
// open a file handle to a particular file:
std::istream & input = std::cin;
std::ostream & error = std::cerr;
std::ostream & output = std::cout;
parser::PTXLexer lexer(&input, &error);
parser::PTXParser state(output);
// parse through the input until there is no more:
//
do {
ptx::yyparse(lexer, state);
}
while (!input.eof());
}