summaryrefslogtreecommitdiffstats
path: root/src/lex.hpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-03-31 04:25:38 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-03-31 04:25:38 +0200
commita0cc8fcb087845096462b8f5790bdbc261d3f2a8 (patch)
tree083ec8b3b517ec9214644a87d7ecb7bbc08143b2 /src/lex.hpp
parent8b707351c72edb799195ea8c8423f34c72c5c46b (diff)
downloadsolar-a0cc8fcb087845096462b8f5790bdbc261d3f2a8.tar
solar-a0cc8fcb087845096462b8f5790bdbc261d3f2a8.zip
parser: rename token_t and value_t to parser_token_t and parser_value_t
Diffstat (limited to 'src/lex.hpp')
-rw-r--r--src/lex.hpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lex.hpp b/src/lex.hpp
index 8898d0b..ea8621b 100644
--- a/src/lex.hpp
+++ b/src/lex.hpp
@@ -62,17 +62,17 @@ private:
bool next(bool move);
void consume(bool needspace);
- int io_error(value_t *value);
- int syntax_error(value_t *value);
- int consume_comment(value_t *value);
- //int unterminated_string(value_t *value);
-
- int lex_string(value_t *value);
- int lex_address(value_t *value);
- int lex_float(value_t *value);
- int lex_number(value_t *value);
- int lex_keyword(value_t *value);
- int lex_symbol(value_t *value, bool terminal);
+ int io_error(parser_value_t *value);
+ int syntax_error(parser_value_t *value);
+ int consume_comment(parser_value_t *value);
+ //int unterminated_string(parser_value_t *value);
+
+ int lex_string(parser_value_t *value);
+ int lex_address(parser_value_t *value);
+ int lex_float(parser_value_t *value);
+ int lex_number(parser_value_t *value);
+ int lex_keyword(parser_value_t *value);
+ int lex_symbol(parser_value_t *value, bool terminal);
char current() {
return buffer[start + tok_len];
@@ -92,7 +92,7 @@ public:
fclose(file);
}
- int lex(value_t *value);
+ int lex(parser_value_t *value);
const location_t & get_location() const {
return loc;