aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-05-19 09:19:35 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2017-05-21 13:19:46 +0200
commita626fcb86acc6d25af9fc4014138c89b39acdb3d (patch)
treeea1185f73ce4c8de538afc56ab1d314e2c795364
parent9c3bc6d2c224181cc1aeda37303f1a8f813937b2 (diff)
downloadell-a626fcb86acc6d25af9fc4014138c89b39acdb3d.tar.gz
ell-a626fcb86acc6d25af9fc4014138c89b39acdb3d.tar.xz
ell-a626fcb86acc6d25af9fc4014138c89b39acdb3d.zip
Formatting
-rwxr-xr-xell.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/ell.c b/ell.c
index 0493598..55c69cd 100755
--- a/ell.c
+++ b/ell.c
@@ -213,19 +213,8 @@ new_list (struct item *head) {
// --- Lexer -------------------------------------------------------------------
-enum token {
- T_ABORT, ///< EOF or error
-
- T_LPAREN, ///< Left parenthesis
- T_RPAREN, ///< Right parenthesis
- T_LBRACKET, ///< Left bracket
- T_RBRACKET, ///< Right bracket
- T_LBRACE, ///< Left curly bracket
- T_RBRACE, ///< Right curly bracket
- T_STRING, ///< Everything else that's not space
- T_NEWLINE, ///< New line
- T_AT ///< At symbol
-};
+enum token { T_ABORT, T_LPAREN, T_RPAREN, T_LBRACKET, T_RBRACKET,
+ T_LBRACE, T_RBRACE, T_STRING, T_NEWLINE, T_AT };
static const char *
token_name (enum token token) {
@@ -489,8 +478,7 @@ parser_free (struct parser *self) {
static enum token
parser_peek (struct parser *self, jmp_buf out) {
- if (self->replace_token)
- {
+ if (self->replace_token) {
self->token = lexer_next (&self->lexer, &self->error);
if (self->error)
longjmp (out, 1);