You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> ast3 = parser.parse("int g(int[const 20]);")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pycparser/c_parser.py", line 152, in parse
debug=debuglevel)
File "pycparser/ply/yacc.py", line 331, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "pycparser/ply/yacc.py", line 1199, in parseopt_notrack
tok = call_errorfunc(self.errorfunc, errtoken, self)
File "pycparser/ply/yacc.py", line 193, in call_errorfunc
r = errorfunc(token)
File "pycparser/c_parser.py", line 1847, in p_error
column=self.clex.find_tok_column(p)))
File "pycparser/plyparser.py", line 67, in _parse_error
raise ParseError("%s: %s" % (coord, msg))
pycparser.plyparser.ParseError: :1:11: before: const
The text was updated successfully, but these errors were encountered:
Consider the following:
This code will fail on the last line:
The text was updated successfully, but these errors were encountered: