#include <iostream>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <deque>
#include <ctype.h>
Go to the source code of this file.
Defines |
| #define | MAYBE(x) |
Typedefs |
| typedef std::list< std::string > | sl_t |
| typedef sl_t::iterator | sl_it |
Enumerations |
| enum | fstate { EMPTY,
INT,
FRAC,
EXP
} |
Functions |
| int | isident (int c) |
| bool | areinclass (string str, int(*isclass)(int)) |
| bool | areident (string s) |
| bool | isop (string tok) |
| string | generic_match (string tok, string la, bool(*mf)(string)) |
| string | match_operator (string tok, string la) |
| string | match_ident (string tok, string la) |
| string | match_quoted_const (string tok, string la, char q) |
| sl_t | snarf_tokens (string line) |
| istream & | getline_no_comments (istream &is, string &line) |
| bool | expand_input (sl_t &tok) |
| sl_it | complete_block (sl_it i, sl_it end, string start_ch, string end_ch) |
| string | makename (string intro) |
| void | append_block (sl_t &t, sl_it b, sl_it e) |
| void | error (sl_t &container, sl_it it, string l) |
| void | handle_try (sl_t &container, sl_it try_kw, sl_it end) |
| void | print_tokens (sl_it begin, sl_it end) |
| int | main (int argc, char **argv) |
Variables |
| string | TRY_TOKEN = "__try" |
| string | EXCEPT_TOKEN = "__except" |
| string | FINALLY_TOKEN = "__finally" |
| char * | c_operators [] |