Permalink
Browse files

better error for transitive verbs w/o object

  • Loading branch information...
1 parent 79dd547 commit 6316bdf809747a598c860737ca68b352b5c5f118 @masak committed Jul 24, 2011
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
@@ -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) }>

0 comments on commit 6316bdf

Please sign in to comment.