Sceleton
This commit is contained in:
1
bfpcompiler/src/analyzer.c
Normal file
1
bfpcompiler/src/analyzer.c
Normal file
@@ -0,0 +1 @@
|
||||
#include "../include/analyzer.h"
|
||||
1
bfpcompiler/src/assembling.c
Normal file
1
bfpcompiler/src/assembling.c
Normal file
@@ -0,0 +1 @@
|
||||
#include "../include/assembling.h"
|
||||
24
bfpcompiler/src/compilefuck.c
Normal file
24
bfpcompiler/src/compilefuck.c
Normal file
@@ -0,0 +1,24 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "../include/analyzer.h"
|
||||
#include "../include/assembling.h"
|
||||
#include "../include/tokenizer.h"
|
||||
|
||||
/**
|
||||
* @name main
|
||||
* @return int
|
||||
* @brief Parse command line options and run compilation.
|
||||
*
|
||||
* @param int argc
|
||||
* @param char** argv
|
||||
*/
|
||||
int main (int argc, char** argv) {
|
||||
int rv = EXIT_SUCCESS;
|
||||
|
||||
/* check for right amount of cl arguments (1 filename at the moment) */
|
||||
if (argc != 2) {
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
return rv;
|
||||
}
|
||||
1
bfpcompiler/src/tokenizer.c
Normal file
1
bfpcompiler/src/tokenizer.c
Normal file
@@ -0,0 +1 @@
|
||||
#include "../include/tokenizer.h"
|
||||
Reference in New Issue
Block a user