Skip to content

Commit 44e62f2

Browse files
authored
Merge pull request #1145 from certik/parser
Parser: increase the stack size
2 parents aef18ea + 5bf697b commit 44e62f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lpython/parser/parser_stype.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,16 @@ static_assert(std::is_trivial<YYSTYPE>::value);
101101
// would reduce performance.
102102
static_assert(sizeof(YYSTYPE) == sizeof(Vec<LPython::AST::ast_t*>));
103103

104+
static_assert(std::is_standard_layout<Location>::value);
105+
static_assert(std::is_trivial<Location>::value);
106+
104107
} // namespace LFortran
105108

106109

107110
typedef struct LFortran::Location YYLTYPE;
108111
#define YYLTYPE_IS_DECLARED 1
109112
#define YYLTYPE_IS_TRIVIAL 0
113+
#define YYINITDEPTH 2000
110114

111115

112116
#endif // LPYTHON_PARSER_STYPE_H

0 commit comments

Comments
 (0)