You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand the manual hasn't been updated in a while (as noted in release notes). Still, I'm trying to use it. The description of normalize-fd doesn't work as expected:
(normalize-fd '((a ((a1 1)))
(a ((alt (((a1 2))
((a2 2))))))
(a nil)
({a a3} 3)))
; Debugger entered on #<TYPE-ERROR expected-type: LIST datum: :I>
After poking around a bit, it seems like the following is closer to what was meant (for that example fd):
I was unable to find any usages of normalize-fd (in the code base) with which to better understand its meaning. It seems one may need different normalization functions for input and grammar fd's:
Also see appendix D.4, "Limits on Disjunctions in Input". This clarifies the situation a bit. Still, it seems like the behavior of normalize-fd changed since 5.2 wrt flags, resulting in the type errors I encountered.
I should have used the actual example input FD from the manual. When you do, normalize-fd returns NIL. However, if you swap the parameters in the call to u in the definition of normalize-fd, you'll get a non-NIL first value, but it won't be normalized. This may be moot because it appears prep-input2 is the real normalizer:
I understand the manual hasn't been updated in a while (as noted in release notes). Still, I'm trying to use it. The description of
normalize-fd
doesn't work as expected:After poking around a bit, it seems like the following is closer to what was meant (for that example fd):
I was unable to find any usages of
normalize-fd
(in the code base) with which to better understand its meaning. It seems one may need different normalization functions for input and grammar fd's:So the previous method doesn't work so well on that input fd. But
prep-input2
does:But then
prep-input2
doesn't work well on the previous grammar-like fd:The text was updated successfully, but these errors were encountered: