Cthulhu  0.2.10
Cthulhu compiler collection
where.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: LGPL-3.0-only
2 
3 #pragma once
4 
5 #include <stdint.h>
6 #include <inttypes.h>
7 
9 typedef uint_fast64_t ctu_line_t;
10 
12 typedef uint_fast64_t ctu_column_t;
13 
15 #define PRI_LINE PRIuFAST64
16 
18 #define PRI_COLUMN PRIuFAST64
19 
22 typedef struct where_t
23 {
26 
29 
32 
35 } where_t;
typedefCT_BEGIN_API struct where_t where_t
Definition: actions.h:10
a location inside a scanner locations are inclusive and 0-based
Definition: where.h:23
ctu_column_t first_column
the first column of the location
Definition: where.h:31
ctu_column_t last_column
the last column of the location
Definition: where.h:34
ctu_line_t last_line
the last line of the location
Definition: where.h:28
ctu_line_t first_line
the first line of the location
Definition: where.h:25
uint_fast64_t ctu_column_t
a column number
Definition: where.h:12
uint_fast64_t ctu_line_t
a line number
Definition: where.h:9