Files
quip/include/frontend/lexer.h
2026-03-21 09:46:15 -04:00

30 lines
596 B
C

/*
* Copyright (c) 2026, Mirocom Laboratories
* Provided under the BSD-3 clause
*
* Abstract:
* This file implements the lexer.
* Author:
* Ian M. Moffett <ian@mirocom.org>
*/
#ifndef FRONTEND_LEXER_H
#define FRONTEND_LEXER_H 1
#include <stdint.h>
#include <stddef.h>
#include "frontend/token.h"
#include "common/state.h"
/*
* Scan for a single token within the source file
*
* @state: Quip state
* @tokres: Token result is written here
*
* Returns zero on success
*/
int lexer_scan(struct quip_state *state, struct token *tokres);
#endif /* !FRONTEND_LEXER_H */