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
>>> bashlex.parse('cmd1\ncmd2 \ncmd3\n')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "bashlex/parser.py", line 614, in parse
part = _parser(s[index:], strictmode=strictmode).parse()
File "bashlex/parser.py", line 682, in parse
tree = theparser.parse(lexer=self.tok, context=self)
File "bashlex/yacc.py", line 277, in parse
return self.parseopt_notrack(input,lexer,debug,tracking,tokenfunc,context)
File "bashlex/yacc.py", line 1079, in parseopt_notrack
tok = self.errorfunc(errtoken)
File "bashlex/parser.py", line 539, in p_error
p.lexer.source, p.lexpos)
bashlex.errors.ParsingError: unexpected token 'cmd3' (position 1)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: