Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • \$\begingroup\$ May the input string be empty? (If so, I think it should score 3.) \$\endgroup\$ Commented Dec 2, 2018 at 2:05
  • \$\begingroup\$ @Arnauld Yes, that's correct. \$\endgroup\$ Commented Dec 2, 2018 at 2:47
  • \$\begingroup\$ How are we supposed to check the number of arguments of undeclared functions? Is the 4th example in "Score 1" not well-formed because write was called once with no argument and once with one argument? \$\endgroup\$ Commented Dec 2, 2018 at 11:24
  • \$\begingroup\$ @Arnauld Yes, you check that each call to a function which is not defined has the same number of arguments. \$\endgroup\$ Commented Dec 2, 2018 at 17:23
  • \$\begingroup\$ I see. Well, this is currently not compatible with my parser, so I'm deleting my answer for now. I may give it another try later. \$\endgroup\$ Commented Dec 2, 2018 at 17:30