aboutsummaryrefslogtreecommitdiff
path: root/src/ls_lex.h
blob: 9aa7b637195870305867df92557be242ab46b323 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// This software disclaims copyright. Do what you want with it. Be gay, do
// crime. Originally written by Alexis Lockwood in 2021. Ⓐ

#ifndef LS_LEX_H
#define LS_LEX_H

// --- DEPENDENCIES ------------------------------------------------------------

// Supporting modules
#include "ls.h"
#include "ls_types.h"

// Standard headers
#include <stdbool.h>
#include <stddef.h>
#include <inttypes.h>

// --- PUBLIC MACROS -----------------------------------------------------------
// --- PRIVATE DATATYPES -------------------------------------------------------
// --- PUBLIC DATATYPES --------------------------------------------------------
// --- PUBLIC CONSTANTS --------------------------------------------------------
// --- PUBLIC VARIABLES --------------------------------------------------------
// --- PUBLIC FUNCTIONS --------------------------------------------------------

/// Grab one decoded token off the stream. Long content is returned into
/// self->_token.
ls_token_t ls_lex(ls_t * self);

/// Consume everything until the end of like (or end of stream)
void ls_consume_to_eol(ls_t * self);

#endif // !defined(LS_LEX_H)