core: Add lexer + parser groundwork
Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (c) 2026, Chloe M.
|
||||
* Provided under the BSD-3 clause
|
||||
*/
|
||||
|
||||
#ifndef CESCAL_LEXER_H
|
||||
#define CESCAL_LEXER_H 1
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include "cescal/token.h"
|
||||
#include "cescal/state.h"
|
||||
|
||||
/*
|
||||
* Consume a single token from the input source file
|
||||
*
|
||||
* @state: Compiler state
|
||||
* @res: Token result is written here
|
||||
*
|
||||
* Returns zero on success
|
||||
*/
|
||||
int lexer_nom(struct cescal_state *state, struct token *res);
|
||||
|
||||
#endif /* !CESCAL_LEXER_H */
|
||||
Reference in New Issue
Block a user