Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow redefine names in the same scope of do/let #441

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions include/hobbes/read/pgen/hexpr.parse.H
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* A Bison parser, made by GNU Bison 3.7.6. */
/* A Bison parser, made by GNU Bison 3.8.2. */

/* Bison interface for Yacc-like parsers in C

Expand Down Expand Up @@ -156,7 +156,7 @@ extern int yydebug;
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
#line 295 "hexpr.y"
#line 319 "hexpr.y"

hobbes::Module* module;
hobbes::ModuleDefs* mdefs;
Expand Down Expand Up @@ -242,6 +242,8 @@ struct YYLTYPE

extern YYSTYPE yylval;
extern YYLTYPE yylloc;

int yyparse (void);


#endif /* !YY_YY_HEXPR_PARSE_H_INCLUDED */
22 changes: 11 additions & 11 deletions lib/hobbes/read/pgen/hexpr.lex.C
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#line 1 "hexpr.lex.C"
#line 2 "hexpr.lex.C"

#line 3 "hexpr.lex.C"
#line 4 "hexpr.lex.C"

#define YY_INT_ALIGNED short int

Expand Down Expand Up @@ -789,9 +789,9 @@ std::string* identifier(const char* b, const char* e) {
return hobbes::autorelease(new std::string(b, e));
}
}
#line 792 "hexpr.lex.C"
#line 793 "hexpr.lex.C"

#line 794 "hexpr.lex.C"
#line 795 "hexpr.lex.C"

#define INITIAL 0
#define BLOCK_COMMENT 1
Expand Down Expand Up @@ -990,11 +990,11 @@ YY_DECL
YY_USER_INIT;
#endif

/* Create the reject buffer large enough to save one state per allowed character. */
if ( ! (yy_state_buf) )
(yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE );
if ( ! (yy_state_buf) )
YY_FATAL_ERROR( "out of dynamic memory in yylex()" );
/* Create the reject buffer large enough to save one state per allowed character. */
if ( ! (yy_state_buf) )
(yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE );
if ( ! (yy_state_buf) )
YY_FATAL_ERROR( "out of dynamic memory in yylex()" );

if ( ! (yy_start) )
(yy_start) = 1; /* first start state */
Expand Down Expand Up @@ -1028,7 +1028,7 @@ YY_DECL
}


#line 1031 "hexpr.lex.C"
#line 1032 "hexpr.lex.C"

while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
{
Expand Down Expand Up @@ -1730,7 +1730,7 @@ YY_RULE_SETUP
#line 214 "hexpr.l"
ECHO;
YY_BREAK
#line 1733 "hexpr.lex.C"
#line 1734 "hexpr.lex.C"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(BLOCK_COMMENT):
yyterminate();
Expand Down
Loading