parser through type error

8 views
Skip to first unread message

Willard Hagen

unread,
Dec 4, 2013, 4:54:48 PM12/4/13
to byu-cs-330...@googlegroups.com
What does the evaluation question mean by the parser allowing through type errors?

Jay McCarthy

unread,
Dec 4, 2013, 4:55:48 PM12/4/13
to Willard Hagen, BYU CS 330 Fall 2013
(parse '(+ 1 true))

is example. This is a type error, but the parser should NOT stop it,
the unification should.

On Wed, Dec 4, 2013 at 2:54 PM, Willard Hagen <willar...@gmail.com> wrote:
> What does the evaluation question mean by the parser allowing through type
> errors?
>
> --
> You received this message because you are subscribed to the Google Groups
> "byu-cs-330-fall-2013" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to byu-cs-330-fall-...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.



--
Jay McCarthy <j...@cs.byu.edu>
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay

"The glory of God is Intelligence" - D&C 93

Jay McCarthy

unread,
Dec 4, 2013, 4:58:01 PM12/4/13
to Willard Hagen, BYU CS 330 Fall 2013
You should answer yes if you DO test for it

On Wed, Dec 4, 2013 at 2:57 PM, Willard Hagen <willar...@gmail.com> wrote:
> So if I have a test for this I should answer no?
> --
> -Willard

Willard Hagen

unread,
Dec 4, 2013, 5:05:18 PM12/4/13
to Jay McCarthy, BYU CS 330 Fall 2013
would this fit the bill?
(test (parse (list 'tempty? 1)) (istempty (num 1)))

Isn't istempty expecting a list?
--
-Willard

Jay McCarthy

unread,
Dec 4, 2013, 5:08:34 PM12/4/13
to Willard Hagen, BYU CS 330 Fall 2013
Yup

Jay McCarthy

unread,
Dec 4, 2013, 5:25:04 PM12/4/13
to Willard Hagen, BYU CS 330 Fall 2013
Provided it is clear that bif is tested

On Wed, Dec 4, 2013 at 3:24 PM, Willard Hagen <willar...@gmail.com> wrote:
> When asking for bif tests, does it count if I have a bif within a rec-with?
Reply all
Reply to author
Forward
0 new messages