ZDATR HyprLex Scratchpad
Dafydd Gibbon, U Bielefeld, 22 March 1997
THEORY
% Co-resident sample DATR theories (25 Jan 1996) % (1) hw.dtr - ILEX-based compositional treatment of English compounds % (2) fsa.dtr - Finite State Automaton for Lreg = ab*c % (3) fsi.dtr FSA interpreter with type checks for Lreg = ab*c %------------------------------ % (1) hw.dtr - ILEX-based compositional treatment of English compounds Housewife: <> == Wife
== "House:<>". Wife: <> == Word
== w i f e
== w i v e s. House: <> == Word
== h o u s e
== h o u s e s. Word: <> ==
== "
" "
" "
"
== "
" "
" "
". %------------------------------ % (2) fsa.dtr - Finite State Automaton for Lreg = ab*c A: <> == reject
== accept
==
==
==
== accept. %------------------------------ % (3) fsi.dtr FSA interpreter with type checks for Lreg = ab*c % This example would be more instructive if variables were used. % Initialisation Start: <> == Transition:
>. % State transition function with type checks Transition: <> == Final
== <>
==
Vocabulary:
> q1>
==
Vocabulary:
> q1>
==
Vocabulary:
> q2>. % Termination function with type checks Final: <> == false
== AND:
>>
== AND:
>>. % State set State: <> == false
== true
== true
== true. % Vocabulary set Vocabulary: <> == false
== true
== true
== true. % Initial state definition Initial: <> == q0. % Boolean functions for type checks AND: <> == true
== false
== <>. OR: <> == false
== true
== <>. NOT: <> == false
== true.
QUERY
Housewife:
Housewife:
A:
A:
A:
A:
A:
Start:<> Start:
Start:
Start:
Start:
notrace
trace
crunch
nocrunch
theorem
value
D. Gibbon, 24 Jan 96