aboutsummaryrefslogtreecommitdiff
path: root/analyzer/parser/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'analyzer/parser/parser.c')
-rw-r--r--analyzer/parser/parser.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/analyzer/parser/parser.c b/analyzer/parser/parser.c
new file mode 100644
index 0000000..b551d8e
--- /dev/null
+++ b/analyzer/parser/parser.c
@@ -0,0 +1,15 @@
+#include "parser.h"
+
+#include <stdlib.h>
+
+ParsedData *parse_stream(char *stream, int stream_len, int *parsed_len) {
+ // TODO: Need to do parsing of the entire thing (loop) and return all of the parsed data
+ if (stream_len > 0) {
+ int length;
+ char *start = find_fight_results(stream, stream_len, &length);
+ if (start != NULL) {
+ parse_fight_results(start, length);
+ }
+ }
+ return NULL;
+}