You've already forked ScriptPreprocessor
mirror of
https://github.com/AxioDL/ScriptPreprocessor.git
synced 2026-07-10 21:18:40 -07:00
Initial Commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#include <iostream>
|
||||
#include "CLexer.hpp"
|
||||
#include "CPreprocessor.hpp"
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <list>
|
||||
|
||||
void printTokenList(CLexer::TokenList& out)
|
||||
{
|
||||
for (const CLexer::Token& token : out)
|
||||
std::cout << token.value;
|
||||
std::cout << std::endl;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
CPreprocessor preprocessor;
|
||||
preprocessor.preprocessFile("main.as");
|
||||
std::cout << preprocessor.finalizedSource() << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user