~jsvoboda/helenos/sysel

« back to all changes in this revision

Viewing changes to uspace/app/sbi/src/lex_t.h

  • Committer: Jiri Svoboda
  • Date: 2010-05-08 08:10:44 UTC
  • Revision ID: jiri@wiwaxia-20100508081044-5hvcjwu15rsfvgnv
Update SBI to rev. 244.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        lc_lit_string,
43
43
 
44
44
        /* Keywords */
 
45
        lc_and,
45
46
        lc_as,
 
47
        lc_break,
46
48
        lc_bool,
47
49
        lc_builtin,
48
50
        lc_char,
49
51
        lc_class,
50
 
        lc_constructor,
51
52
        lc_deleg,
52
53
        lc_do,
 
54
        lc_elif,
53
55
        lc_else,
54
56
        lc_end,
 
57
        lc_enum,
55
58
        lc_except,
56
59
        lc_false,
57
60
        lc_finally,
65
68
        lc_interface,
66
69
        lc_is,
67
70
        lc_nil,
 
71
        lc_not,
 
72
        lc_or,
68
73
        lc_override,
69
74
        lc_packed,
70
75
        lc_private,
147
152
        } u;
148
153
 
149
154
        /** Coordinates of this lexical element */
150
 
        int line_no, col_0;
 
155
        struct cspan *cspan;
151
156
} lem_t;
152
157
 
153
158
/** Lexer state object */
167
172
        /** Column number adjustment (due to tabs) */
168
173
        int col_adj;
169
174
 
170
 
        /** @c b_true if we have the next lem in @c current */
 
175
        /** @c b_true if we have the previous lem in @c prev */
 
176
        bool_t prev_valid;
 
177
 
 
178
        /** Previous lem (only valid if @c current_valid is true) */
 
179
        lem_t prev;
 
180
 
 
181
        /** @c b_true if we have the current lem in @c current */
171
182
        bool_t current_valid;
172
183
 
173
184
        /** Curent lem (only valid if @c current_valid is true) */