From 9e12a95612b4d0d91e78114189a41f48b618ba52 Mon Sep 17 00:00:00 2001 From: Stefano Sanfilippo Date: Tue, 25 Nov 2014 00:47:51 +0100 Subject: [PATCH] Renaming ASSERT_BEGIN and ASSERT_END into ASSERT and BANG. --- Monicelli.ll | 4 ++-- Monicelli.y | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Monicelli.ll b/Monicelli.ll index 759a324..81d8125 100644 --- a/Monicelli.ll +++ b/Monicelli.ll @@ -108,10 +108,10 @@ CHAR [a-zA-Z_] return INPUT; } "ho visto" { - return ASSERT_BEGIN; + return ASSERT; } "!" { - return ASSERT_END; + return BANG; } "stuzzica" { return LOOP_BEGIN; diff --git a/Monicelli.y b/Monicelli.y index 2640463..0f5b3aa 100644 --- a/Monicelli.y +++ b/Monicelli.y @@ -22,7 +22,7 @@ extern int yylex(); %token ARTICLE TYPENAME STAR %token VARDECL ASSIGN %token PRINT INPUT -%token ASSERT_BEGIN ASSERT_END +%token ASSERT BANG %token LOOP_BEGIN LOOP_CONDITION %token BRANCH_CONDITION BRANCH_BEGIN BRANCH_ELSE BRANCH_END CASE_END %token COLON COMMA @@ -97,7 +97,7 @@ input_stmt: INPUT variable ; return_stmt: - RETURN ASSERT_END | RETURN expression ASSERT_END + RETURN BANG | RETURN expression BANG ; loop_stmt: LOOP_BEGIN statements LOOP_CONDITION expression @@ -130,7 +130,7 @@ abort_stmt: ABORT ; assert_stmt: - ASSERT_BEGIN expression ASSERT_END + ASSERT expression BANG ; expression: simple_expression |