Gyoji Compiler
Loading...
Searching...
No Matches
src
frontend
gyoji-frontend
parse-literal-int.hpp
1
#ifndef _GYOJI_INTERNAL
2
#error "This header is intended to be used internally as a part of the Gyoji front-end. Please include frontend.hpp instead."
3
#endif
4
#pragma once
5
6
namespace
Gyoji::frontend::integers {
7
8
typedef
struct
{
9
const
Gyoji::mir::Type
*parsed_type;
10
11
unsigned
char
u8_value;
12
unsigned
short
u16_value;
13
unsigned
int
u32_value;
14
unsigned
long
u64_value;
15
16
char
i8_value;
17
short
i16_value;
18
int
i32_value;
19
long
i64_value;
20
21
} ParseLiteralIntResult;
22
23
bool
parse_literal_int(
24
const
Gyoji::context::CompilerContext
& compiler_context,
25
const
Gyoji::mir::Types
& types,
26
const
Gyoji::frontend::tree::Terminal
& literal_int_token,
27
ParseLiteralIntResult & result
28
);
29
30
}
Gyoji::context::CompilerContext
Compiler Context.
Definition
gyoji-context.hpp:30
Gyoji::frontend::tree::Terminal
Represents tokens from the lexer used to represent keywords and identifiers found in the source.
Definition
tree.hpp:89
Gyoji::mir::Type
This represents a type as declared in a translation unit.
Definition
types.hpp:299
Gyoji::mir::Types
Set of types extracted from a translation unit.
Definition
types.hpp:40
Generated by
1.9.8