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
Hi @theofidry I see it comes from the same code as #775 645 as parsing arguments relies on this regexp:
preg_match_all('/[[^[]+]|[^,\s]+/', $argumentsString, $argumentsList);
And I have no idea how to extract arguments correctly from such pattern as
<f(<g(<b()>, e)>, d, <c()>)>
using only regexps.
I can fix it looping over the symbols in the argument string but you might have already had such a method implemented in the alice code, don't you?
That's clearly not enough and your fix may have helped. But as you said it's a problem were regexes are bad at. A cleaner solution would be #601 and #712. I believe @Hywan started some bits, but that's a significant piece of work for sure.
What's supported:
<f(<g()>)>
<f(<g()>, 'a')>
<f(<g('a')>)>
What's not:
<f(<g('b', 'e')>, 'd')>
/cc @dantleech
The text was updated successfully, but these errors were encountered: