Menu

[73c16a]: / CPP Converter / Tokens.h  Maximize  Restore  History

Download this file

44 lines (39 with data), 2.1 kB

 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
33
34
35
36
37
38
39
40
41
42
43
#ifndef TOKENS_H_INCLUDED// If this file has not been included before
#define TOKENS_H_INCLUDED// Prevent it from being re-included
// Scan Catagorys
#define $number 0x1// The scaned item is a number
#define $identifier 0x2// The scaned item is an identifier
#define $operator 0x3// The scaned item is an operator
#define $BlocCom 0x4// The scaned item starts a block comment
#define $LineCom 0x5// The scaned item sstarts a line comment
// Data Types
#define $DT_number 0x111// The number is floating point
#define $DT_string 0x211// the number is an integer
#define $DT_slist 0x311// the variable is a string
#define $DT_nlist 0x411// the function is void
#define $DT_void 0x511// the function is void
// Keywords
#define $KW_begin 0// The first keyword in the array
#define $KW_end 1// The seconed keyword in the array
#define $KW_main 2// The third keyword in the array
#define $KW_int 3// The fourth keyword in the array
#define $KW_string 4// The sixth keyword in the array
#define $KW_for 5// The seventh keyword in the array
#define $KW_loop 6// The eighth keyword in the array
#define $KW_while 7// The ninth keyword in the array
#define $KW_until 8// The tenth keyword in the array
#define $KW_do 9// The eleventh keyword in the array
#define $KW_forever 10// The twelth keyword in the array
#define $KW_if 11// The thirteenth keyword in the array
#define $KW_else 12// The fouteenth keyword in the array
#define $KW_break 13// The fifteenth keyword in the array
#define $KW_continue 14// The sixteenth keyword in the array
#define $KW_asm 15// The seventeenth keyword in the array
#define $KW_switch 16// The nineteenth keyword in the array
#define $KW_case 17// The twentyth keyword in the array
#define $KW_return 18// The twenty-seconed keyword in the array
#define $KW_datatype 19// The twenty-seconed keyword in the array
#define $KW_list 20// The twenty-seconed keyword in the array
#define $KW_void 21// The twenty-seconed keyword in the array
#define $KW_sizeof 24
#endif // TOKENS_H_INCLUDED
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.