-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnextsymb.h
102 lines (89 loc) · 2.8 KB
/
nextsymb.h
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/*
* $Id: nextsymb.h,v 1.5 2008/07/15 14:57:11 bnv Exp $
* $Log: nextsymb.h,v $
* Revision 1.5 2008/07/15 14:57:11 bnv
* mvs corretions
*
* Revision 1.4 2002/06/11 12:37:56 bnv
* Added: CDECL
*
* Revision 1.3 2001/06/25 18:52:04 bnv
* Header -> Id
*
* Revision 1.2 1999/11/29 14:58:00 bnv
* Changed: Some defines
*
* Revision 1.1 1998/07/02 17:35:50 bnv
* Initial revision
*
*/
#include "lstring.h"
#ifndef __NEXTSYMBOL_H__
#define __NEXTSYMBOL_H__
enum symboltype {
ident_sy /* identifier nextsymbsymbol */
, function_sy /* ident with a paren */
, literal_sy /* literal nextsymbsymbol */
, le_parent /* ( */ /* the order */
, le_bracket /* [ */ /* until */
, le_curlbracket /* { */ /* not_ty */
, plus_sy /* + */ /* is important */
, inc_sy /* ++ */ /* for expr.c */
, minus_sy /* - */
, dec_sy /* -- */
, not_sy /* ? or \ */ /* ------------ */
, eq_sy, deq_sy /* = == */ /* eq_sy - first */
, ne_sy, dne_sy /* ^= ^== */
, le_sy, ge_sy /* <= => */
, lt_sy, gt_sy /* < > */
, dle_sy, dge_sy /* <<= =>> */
, dlt_sy, dgt_sy /* << >> */
, times_sy /* * */ /* another group */
, div_sy /* / */
, mod_sy /* % */
, intdiv_sy /* // */ /* --------------- */
, ri_parent /* ) */
, ri_bracket /* ] */
, ri_curlbracket /* } */
, dot_sy /* . */
, tidle_sy /* ~ */
, power_sy /* ** */
, and_sy /* & */
, or_sy /* | */
, xor_sy /* && */
, concat_sy /* || */
, bconcat_sy /* |b| */
, comma_sy /* , */
, semicolon_sy /* ; */
, to_sy /* in_do */
, by_sy /* in_do */
, for_sy /* in_do */
, until_sy /* in_do */
, while_sy /* in_do */
, then_sy /* in_if_...*/
, with_sy /* in_parse */
, label_sy, exit_sy
/*---------------------------------------------------
,div_assign_sy * /= *
,times_assign_sy * *= *
,mod_assign_sy * %= *
,power_assign_sy * **= *
,intdiv_assign_sy * //= *
,and_assign_sy * &= *
,plus_assign_sy * += *
,minus_assign_sy * -= *
,concat_assign_sy * ||= *
,or_assign_sy * |= *
,xor_assign_sy * &&= *
----------------------------------------------------*/
};
enum stat_type {
normal_st /* normal statement */
, in_do_st, in_do_init_st, in_if_init_st, in_if_st, in_parse_value_st
};
/* "Globals" */
#include "context.h"
/* -------- function prototypes ----------- */
void __CDECL InitNextsymbol(PLstr str);
void __CDECL nextsymbol(void);
#endif