add declaring and assignment with parser LHS support
This commit is contained in:
17
src/parser/assignable/assign/assign.h
Normal file
17
src/parser/assignable/assign/assign.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef ASSIGN_H
|
||||
#define ASSIGN_H
|
||||
#include "../../parser.h"
|
||||
#include "../../../lexer/token.h"
|
||||
|
||||
typedef struct {
|
||||
ParsedValue * to;
|
||||
TokenType type;
|
||||
ParsedValue * from;
|
||||
} ParsedAssign;
|
||||
|
||||
ParsedValue *parse_assign(char*file, DArray *tokens,
|
||||
ParsedValue *assign_to, size_t *index);
|
||||
|
||||
void free_parse_assign(void*ptr);
|
||||
|
||||
#endif // ASSIGN_H
|
||||
Reference in New Issue
Block a user