source\example\autoformat\test.g
1 /******************************************************************************
2 *
3 * Copyright (C) 2006, The Gentee Group. All rights reserved.
4 * This file is part of the Gentee open source project <http://www.gentee.com>.
5 *
6 * THIS FILE IS PROVIDED UNDER THE TERMS OF THE GENTEE LICENSE ("AGREEMENT").
7 * ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE CONSTITUTES RECIPIENTS
8 * ACCEPTANCE OF THE AGREEMENT.
9 *
10 * lexfgentee 24.11.2006
11 *
12 * Author: Generated with 'lextbl' program
13 *
14 * Description: This file contains a lexical table for the lexical analizer.
15 *
16 ******************************************************************************/
17
18
19 define
20 {
21 // States
22 FG_BINARY = 0x240000 // Binary data
23 FG_TEXTSTR = 0x230000 // Text string
24 FG_COMMENT = 0x90000 // Comment /* ... */
25 FG_UNKNOWN = 0x40000 // Unknown characters
26 FG_LINE = 0x2000000 // New line 0x0D0A or 0x0A
27 FG_NUMBER = 0x3000000 // Number decimal, hexadecimal, float or double
28 FG_IGNLINE = 0x30000 // Ignore line character \
29 FG_SYSCHAR = 0x4000000 // Punctuation marks
30 FG_STRING = 0x1F0000 // String
31 FG_MACRO = 0x5000000 // Macro identifier $name
32 FG_OPERCHAR = 0x1000000 // Operations
33 FG_NAME = 0xB0000 // Name identifier
34 FG_SPACE = 0x50000 // Space characters
35 FG_MACROSTR = 0x1E0000 // Macro string $"String"
36 FG_LINECOMMENT = 0xA0000 // Comment //...
37 FG_TAB = 0x60000 // Tab characters
38
39 // Keywords
40 KEY_AS = 0x1
41 KEY_BREAK = 0x2
42 KEY_CASE = 0x3
43 KEY_CONTINUE = 0x4
44 KEY_DEFAULT = 0x5
45 KEY_DEFINE = 0x6
46 KEY_DO = 0x7
47 KEY_ELIF = 0x8
48 KEY_ELSE = 0x9
49 KEY_EXTERN = 0xA
50 KEY_FOR = 0xB
51 KEY_FOREACH = 0xC
52 KEY_FORNUM = 0xD
53 KEY_FUNC = 0xE
54 KEY_GLOBAL = 0xF
55 KEY_GOTO = 0x10
56 KEY_IF = 0x11
57 KEY_IFDEF = 0x12
58 KEY_IMPORT = 0x13
59 KEY_INCLUDE = 0x14
60 KEY_LABEL = 0x15
61 KEY_METHOD = 0x16
62 KEY_OF = 0x17
63 KEY_OPERATOR = 0x18
64 KEY_PRIVATE = 0x19
65 KEY_PROPERTY = 0x1A
66 KEY_PUBLIC = 0x1B
67 KEY_RETURN = 0x1C
68 KEY_SWITCH = 0x1D
69 KEY_SUBFUNC = 0x1E
70 KEY_TYPE = 0x1F
71 KEY_WHILE = 0x20
72 KEY_TEXT = 0xFF
73 KEY_ARR = 0x100
74 KEY_BUF = 0x101
75 KEY_BYTE = 0x102
76 KEY_DOUBLE = 0x103
77 KEY_FLOAT = 0x104
78 KEY_HASH = 0x105
79 KEY_INT = 0x106
80 KEY_LONG = 0x107
81 KEY_SHORT = 0x108
82 KEY_STR = 0x109
83 KEY_UBYTE = 0x10A
84 KEY_UINT = 0x10B
85 KEY_ULONG = 0x10C
86 KEY_USHORT = 0x10D
87
88 }
89
90 global
91 {
92 buf lexfgentee =
93 }
94