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
In[1]:= f[x:(_..)]
Syntax::sntxf: "f[x:(_.." cannot be followed by ")]" (line 1 of "<stdin>").
Expected f[Pattern[x, Repeated[Blank[]]]]
Traceback (most recent call last):
File "matcher.py", line 326, in <module>
tests.append((_parse(expr), _parse(patt), (slots, names)))
File "matcher.py", line 269, in _parse
return parse(definitions, SingleLineFeeder(expr_string))
File "/home/angus/Mathics/mathics/core/parser/util.py", line 25, in parse
ast = parser.parse(feeder)
File "/home/angus/Mathics/mathics/core/parser/parser.py", line 39, in parse
return self.parse_e()
File "/home/angus/Mathics/mathics/core/parser/parser.py", line 76, in parse_e
result.append(self.parse_exp(0))
File "/home/angus/Mathics/mathics/core/parser/parser.py", line 94, in parse_exp
new_result = method(result, token, p)
File "/home/angus/Mathics/mathics/core/parser/parser.py", line 474, in e_RawLeftBracket
seq = self.parse_seq()
File "/home/angus/Mathics/mathics/core/parser/parser.py", line 171, in parse_seq
result.append(self.parse_exp(0))
File "/home/angus/Mathics/mathics/core/parser/parser.py", line 94, in parse_exp
new_result = method(result, token, p)
File "/home/angus/Mathics/mathics/core/parser/parser.py", line 541, in e_RawColon
expr2 = self.parse_exp(q + 1)
File "/home/angus/Mathics/mathics/core/parser/parser.py", line 85, in parse_exp
result = self.parse_p()
File "/home/angus/Mathics/mathics/core/parser/parser.py", line 121, in parse_p
return method(token)
File "/home/angus/Mathics/mathics/core/parser/parser.py", line 254, in p_RawLeftParenthesis
result = self.parse_exp(0)
File "/home/angus/Mathics/mathics/core/parser/parser.py", line 98, in parse_exp
new_result = self.parse_binary(result, token, p)
File "/home/angus/Mathics/mathics/core/parser/parser.py", line 215, in parse_binary
expr2 = self.parse_exp(q)
File "/home/angus/Mathics/mathics/core/parser/parser.py", line 85, in parse_exp
result = self.parse_p()
File "/home/angus/Mathics/mathics/core/parser/parser.py", line 129, in parse_p
raise InvalidSyntaxError()
The text was updated successfully, but these errors were encountered:
Expected
f[Pattern[x, Repeated[Blank[]]]]
The text was updated successfully, but these errors were encountered: