Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

better error for transitive verbs w/o object

  • Loading branch information...
commit 6316bdf809747a598c860737ca68b352b5c5f118 1 parent 79dd547
@masak authored
Showing with 4 additions and 2 deletions.
  1. +0 −2  TODO
  2. +4 −0 crypt.pl
View
2  TODO
@@ -1,8 +1,6 @@
* "bathe"
* in Hill: "stone(s)", "forest", "ground"
-* "examine"
* "climb hill"
* when dropped on the ground, the leaves disappear! (They shouldn't.)
-* "turn on"
* "examine hieroglyph(s)" etc
* "the tiny disk" as disambiguation
View
4 crypt.pl
@@ -892,6 +892,10 @@ ()
}
}
+ when /^ :s $<verb>=[\w+[ \w+]?] <?{ $<verb> eq any(@verbs) }> $/ {
+ say "What do you want to $<verb>?";
+ }
+
# RAKUDO: Due to [perl #95504], we have to do the checking like
# this instead of just $<verb>=@verbs
when /^ :s $<verb>=[\w+[ \w+]?] <?{ $<verb> eq any(@verbs) }>
Please sign in to comment.
Something went wrong with that request. Please try again.