aboutsummaryrefslogtreecommitdiffstats
path: root/c_lexer/test
diff options
context:
space:
mode:
Diffstat (limited to 'c_lexer/test')
-rw-r--r--c_lexer/test/.gitignore2
-rw-r--r--c_lexer/test/test_lex.c14
2 files changed, 16 insertions, 0 deletions
diff --git a/c_lexer/test/.gitignore b/c_lexer/test/.gitignore
new file mode 100644
index 0000000..94ca778
--- /dev/null
+++ b/c_lexer/test/.gitignore
@@ -0,0 +1,2 @@
+output.json
+pre_processed_test_lex.c
diff --git a/c_lexer/test/test_lex.c b/c_lexer/test/test_lex.c
new file mode 100644
index 0000000..9db9054
--- /dev/null
+++ b/c_lexer/test/test_lex.c
@@ -0,0 +1,14 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include <assert.h>
+#include <math.h>
+
+#define POTATO 5
+
+int main(int argc, char* argv[]) {
+ char* h = "Hello World\"";
+ int j = POTATO;
+ int u = 2398uL;
+ float rt = 23.238e-283;
+ return 0;
+}