MXVM
1.8.1
Virtual Machine, Compiler, and Pascal Frontend
Loading...
Searching...
No Matches
types.hpp
Go to the documentation of this file.
1
6
#ifndef __TYPES__H_HPP
7
#define __TYPES__H_HPP
8
9
namespace
mxx
{
10
12
enum class
Keywords
{
13
AND
,
14
ARRAY
,
15
BEGIN
,
16
CASE
,
17
CONST
,
18
DIV
,
19
DO
,
20
DOWNTO
,
21
ELSE
,
22
END
,
23
FILE
,
24
FOR
,
25
FUNCTION
,
26
GOTO
,
27
IF
,
28
IN
,
29
LABEL
,
30
MOD
,
31
NIL
,
32
NOT
,
33
OF
,
34
OR
,
35
PACKED
,
36
PROCEDURE
,
37
PROGRAM
,
38
RECORD
,
39
REPEAT
,
40
SET
,
41
THEN
,
42
TO
,
43
TYPE
,
44
UNTIL
,
45
VAR
,
46
WHILE
,
47
WITH
48
};
49
51
static
const
char
*
key_str
[] = {
52
"and"
,
53
"array"
,
54
"begin"
,
55
"case"
,
56
"const"
,
57
"div"
,
58
"do"
,
59
"downto"
,
60
"else"
,
61
"end"
,
62
"file"
,
63
"for"
,
64
"function"
,
65
"goto"
,
66
"if"
,
67
"in"
,
68
"label"
,
69
"mod"
,
70
"nil"
,
71
"not"
,
72
"of"
,
73
"or"
,
74
"packed"
,
75
"procedure"
,
76
"program"
,
77
"record"
,
78
"repeat"
,
79
"set"
,
80
"then"
,
81
"to"
,
82
"type"
,
83
"until"
,
84
"var"
,
85
"while"
,
86
"with"
};
87
88
}
// namespace mxx
89
90
#endif
NOT
@ NOT
Definition
instruct.hpp:33
MOD
@ MOD
Definition
instruct.hpp:34
DIV
@ DIV
Definition
instruct.hpp:29
AND
@ AND
Definition
instruct.hpp:31
OR
@ OR
Definition
instruct.hpp:30
mxx
Definition
expr.cpp:8
mxx::Keywords
Keywords
Standard Pascal reserved keyword enumeration.
Definition
types.hpp:12
mxx::Keywords::BEGIN
@ BEGIN
Definition
types.hpp:15
mxx::Keywords::TO
@ TO
Definition
types.hpp:42
mxx::Keywords::GOTO
@ GOTO
Definition
types.hpp:26
mxx::Keywords::DOWNTO
@ DOWNTO
Definition
types.hpp:20
mxx::Keywords::REPEAT
@ REPEAT
Definition
types.hpp:39
mxx::Keywords::FUNCTION
@ FUNCTION
Definition
types.hpp:25
mxx::Keywords::PROCEDURE
@ PROCEDURE
Definition
types.hpp:36
mxx::Keywords::LABEL
@ LABEL
Definition
types.hpp:29
mxx::Keywords::ELSE
@ ELSE
Definition
types.hpp:21
mxx::Keywords::FOR
@ FOR
Definition
types.hpp:24
mxx::Keywords::OF
@ OF
Definition
types.hpp:33
mxx::Keywords::PACKED
@ PACKED
Definition
types.hpp:35
mxx::Keywords::SET
@ SET
Definition
types.hpp:40
mxx::Keywords::THEN
@ THEN
Definition
types.hpp:41
mxx::Keywords::RECORD
@ RECORD
Definition
types.hpp:38
mxx::Keywords::TYPE
@ TYPE
Definition
types.hpp:43
mxx::Keywords::FILE
@ FILE
Definition
types.hpp:23
mxx::Keywords::END
@ END
Definition
types.hpp:22
mxx::Keywords::CONST
@ CONST
Definition
types.hpp:17
mxx::Keywords::NIL
@ NIL
Definition
types.hpp:31
mxx::Keywords::CASE
@ CASE
Definition
types.hpp:16
mxx::Keywords::WHILE
@ WHILE
Definition
types.hpp:46
mxx::Keywords::DO
@ DO
Definition
types.hpp:19
mxx::Keywords::IN
@ IN
Definition
types.hpp:28
mxx::Keywords::PROGRAM
@ PROGRAM
Definition
types.hpp:37
mxx::Keywords::ARRAY
@ ARRAY
Definition
types.hpp:14
mxx::Keywords::VAR
@ VAR
Definition
types.hpp:45
mxx::Keywords::IF
@ IF
Definition
types.hpp:27
mxx::Keywords::UNTIL
@ UNTIL
Definition
types.hpp:44
mxx::Keywords::WITH
@ WITH
Definition
types.hpp:47
mxx::key_str
static const char * key_str[]
String representations of Keywords values, indexed by enum ordinal.
Definition
types.hpp:51
src
frontend
include
types.hpp
Generated by
1.16.1