summaryrefslogtreecommitdiff
path: root/source/csv_reader.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/csv_reader.h')
-rw-r--r--source/csv_reader.h30
1 files changed, 13 insertions, 17 deletions
diff --git a/source/csv_reader.h b/source/csv_reader.h
index 6c8e625..2b6f49c 100644
--- a/source/csv_reader.h
+++ b/source/csv_reader.h
@@ -63,6 +63,9 @@ csv_table nil_csv_table =
63}; 63};
64 64
65 65
66
67#endif /* ENGINE_LEXER_H */
68
66// the lexer acts as a table builder from a csv file 69// the lexer acts as a table builder from a csv file
67// and parsing indivudal rows and columns 70// and parsing indivudal rows and columns
68// the next step would be building a the b-tree 71// the next step would be building a the b-tree
@@ -115,31 +118,24 @@ tokenize_csv(string8 buffer, mem_arena *arena)
115} 118}
116 119
117internal void 120internal void
118strip_new_line(string8 buffer)
119{
120
121 for (u64 index = 0; index < buffer.size; index++)
122 {
123
124 }
125
126 return;
127
128}
129
130internal void
131read_csv(string8 buffer) 121read_csv(string8 buffer)
132{ 122{
133 // printf("\nsize:%lu\ndata %s\n", buffer.size, buffer.data); 123 // printf("\nsize:%lu\ndata %s\n", buffer.size, buffer.data);
134 124
135} 125}
136 126
137internal csv_table * 127internal b_tree *
138parse_csv(token *tokens, csv_table *table) 128parse_csv(csv_token *tok, csv_table *table)
139{ 129{
140 130
131
132 for (;tok->next; tok = tok->next)
133 {
134 b_tree_node *current_btree_node = btree_node_alloc;
135
136
137 }
138
141 return NULL; 139 return NULL;
142} 140}
143 141
144
145#endif /* ENGINE_LEXER_H */