add dictionaries and add accessing with a value
This commit is contained in:
16
src/parser/dictionary/dictionary.h
Normal file
16
src/parser/dictionary/dictionary.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef DICTIONARY_H
|
||||
#define DICTIONARY_H
|
||||
#include "../../lexer/token.h" // for Token
|
||||
#include "../parser.h"
|
||||
|
||||
typedef struct {
|
||||
ParsedValue * key;
|
||||
ParsedValue * value;
|
||||
} ParsedDictionaryEntry;
|
||||
|
||||
ParsedValue *parse_dictionary(char *file, DArray *tokens,
|
||||
size_t *index);
|
||||
|
||||
void free_parsed_dictionary(void *ptr);
|
||||
|
||||
#endif // DICTIONARY_H
|
||||
Reference in New Issue
Block a user