|
libpulsar
A modular compiler for the pulsar programming language
|
Go to the source code of this file.
Macros | |
| #define | eof() ps_tstream_is_eof(ts) |
| #define | adv() ps_tstream_advance(ts) |
| #define | match(type, ctx) |
| Tries to match the next token with the given token type, opening a block for if no match succeeded. | |
| #define | bindmatch(val, type, ctx) |
| Tries to match the next token with the given token type and assign the token to the given variable, opening a block for if no match succeeded. | |
| #define | bindmatch_any(val, types, ctx) |
| #define | tcur() ps_tstream_current(ts) |
| #define | unwind() ps_tstream_advance_n(ts, -1) |
Functions | |
| void | ps_tstream_eof_error (struct ps_tstream *ts, int code, STR ctx, STR fix) |
Reports an end-of-file error with the given context ctx, using the last token in ts for location. | |
| #define adv | ( | ) | ps_tstream_advance(ts) |
Definition at line 21 of file tstream_short.h.
| #define bindmatch | ( | val, | |
| type, | |||
| ctx | |||
| ) |
Tries to match the next token with the given token type and assign the token to the given variable, opening a block for if no match succeeded.
Definition at line 35 of file tstream_short.h.
| #define bindmatch_any | ( | val, | |
| types, | |||
| ctx | |||
| ) |
Definition at line 43 of file tstream_short.h.
| #define eof | ( | ) | ps_tstream_is_eof(ts) |
Definition at line 19 of file tstream_short.h.
| #define match | ( | type, | |
| ctx | |||
| ) |
Tries to match the next token with the given token type, opening a block for if no match succeeded.
Definition at line 27 of file tstream_short.h.
| #define tcur | ( | ) | ps_tstream_current(ts) |
Definition at line 48 of file tstream_short.h.
| #define unwind | ( | ) | ps_tstream_advance_n(ts, -1) |
Definition at line 50 of file tstream_short.h.
| void ps_tstream_eof_error | ( | struct ps_tstream * | ts, |
| int | code, | ||
| STR | ctx, | ||
| STR | fix | ||
| ) |