Open guy4261 opened 2 years ago
This works with the grammar on the master branch. The parsing of arguments was one of the reasons I made the rewrite.
And, even if param doesn't contain space, the arguments
isn't be split:
all:
$(call f,test)
>>> tree.root_node.children[0].children[2].children[0].children[0].children[0].children[-2]
<Node type=arguments, start_point=(1, 8), end_point=(1, 14)>
>>> tree.root_node.children[0].children[2].children[0].children[0].children[0].children[-2].children
[<Node type=text, start_point=(1, 8), end_point=(1, 14)>]
>>> tree.root_node.children[0].children[2].children[0].children[0].children[0].children[-2].children[0]
<Node type=text, start_point=(1, 8), end_point=(1, 14)>
>>> tree.root_node.children[0].children[2].children[0].children[0].children[0].children[-2].children[0].text
f,test
>>> tree.root_node.children[0].children[2].children[0].children[0].children[0].children[-2].children[0].children
[]
However, tree.root_node.children[0].children[2].children[0].children[0].children[0].children[-2].children[0].children
should be a list containing three elements: f
, ,
, test
Consider the Makefile docs
$(call variable,param,param,…)
should be legitimate, right?If your
Makefile
looks like this:Then running
make
will work fine:However, parsing it will get you an error:
The printout indicates parsing errors: