X-Git-Url: https://jxself.org/git/?p=mudsync.git;a=blobdiff_plain;f=mudsync%2Fparser.scm;h=5da6bc9f8c6c8c0ee8dd0f38a68891abfa2eca67;hp=3d84195206cce90e0923c7fb40420691d3574f5a;hb=b8279be0a2ca8f5e235166acd5cc1bde3854dd5b;hpb=1c65eb772aaa7c3a4278b95bc02660dc79c25438 diff --git a/mudsync/parser.scm b/mudsync/parser.scm index 3d84195..5da6bc9 100644 --- a/mudsync/parser.scm +++ b/mudsync/parser.scm @@ -93,14 +93,14 @@ (define (cmatch-direct-obj-greedy phrase) ;; Turns out this uses the same semantics as splitting verb/rest - (match (split-verb-and-rest string) + (match (split-verb-and-rest phrase) ((direct-obj . rest) (list #:direct-obj direct-obj #:rest rest)) (#f #f))) (define (cmatch-greedy phrase) - `((line . ,phrase))) + `(#:phrase ,phrase)) ;; (define say-example "say I really need to get going.") ;; (define attack-sword-example "hit goblin with sword")