aboutsummaryrefslogtreecommitdiff
path: root/include/stem.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/stem.h')
-rw-r--r--include/stem.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/stem.h b/include/stem.h
index f4aff54..c467286 100644
--- a/include/stem.h
+++ b/include/stem.h
@@ -48,14 +48,14 @@ struct VALUE_STRUCT {
/*! @brief Parser implementation directly parses without lexer */
/*! the parser data structure parses a string of valid stem code and
- * returns a value until it reaches EOF or end of string. */
+ * returns a value until it reaches end of string. */
typedef struct PARSER_STRUCT {
/*! @brief The string that contains valid stem code. */
char *source;
/*! @brief Index of current character */
int i;
/*! @brief The current character */
- char c;
+ int c;
} parser_t;
/*! @brief This structure is to be used in singly linked lists that hold
@@ -181,7 +181,7 @@ value_t *parse_word(parser_t *p);
/*! Error in parsing strings can occur if wrong escape code. */
void parser_error(parser_t *p);
-/*! Gets the next value_t from the string, returns NULL if EOF. */
+/*! Gets the next value_t from the string, returns NULL if end of string. */
value_t *parser_get_next(parser_t *p);
/*! Allocates memory for new node struct. */