YACDB
Yet Another C(rappy) Database
main_parser.h
Go to the documentation of this file.
1
6#ifndef PARSER_H
7#define PARSER_H
8
9#include <stdio.h>
10#include "instruction.h"
11
12instr *parse_instr(char *);
14void dump_instr(FILE *, instr *);
15void dump_instrarray(FILE *, InstrArray *);
16void free_instr(instr *);
18
19#endif
Structures for instruction management.
instr * parse_instr(char *data)
Parse an instruction.
Definition: parser.c:423
InstrArray * parse_user_input(char *data)
Parse the user input.
Definition: parser.c:452
void dump_instrarray(FILE *f, InstrArray *Instrarray)
Dump an Instrarray in a file.
Definition: parser_dump.c:18
void dump_instr(FILE *f, instr *instr)
Dump an instr in a file.
Definition: parser_dump.c:28
void free_instrarray(InstrArray *instrarray)
Free an InstrArray.
Definition: parser_mallocs_frees.c:28
void free_instr(instr *instr)
Free an instruction of any type.
Definition: parser_mallocs_frees.c:38
An array of instruction.
Definition: instruction.h:128
One yacDB instruction, this type is meant to be casted into other instr type.
Definition: instruction.h:69