% library(win_menu) compiled into win_menu 0.00 sec, 33 clauses Welcome to SWI-Prolog (Multi-threaded, 64 bits, Version 6.4.0) Copyright (c) 1990-2013 University of Amsterdam, VU Amsterdam SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. Please visit http://www.swi-prolog.org for details. For help, use ?- help(Topic). or ?- apropos(Word). 1 ?- consult('crypto_nlp_i.pro'). % io.pro compiled 0.00 sec, 28 clauses % C:/Users/joshu/Documents/CSC366/Assignments/assignment03/gv2.pro compiled 0.00 sec, 20 clauses % C:/Users/joshu/Documents/CSC366/Assignments/sets/combosets.pro compiled 0.00 sec, 38 clauses % c:/Users/joshu/Documents/CSC366/Assignments/sets/combosets.pro compiled 0.00 sec, 1 clauses % c:/Users/joshu/Documents/CSC366/Assignments/assignment03/gv2.pro compiled 0.00 sec, 1 clauses % c:/Users/joshu/Documents/CSC366/Assignments/crypto/v1/crypto.pro compiled 0.00 sec, 15 clauses % c:/Users/joshu/Documents/CSC366/Assignments/sets/combosets.pro compiled 0.00 sec, 1 clauses % c:/Users/joshu/Documents/CSC366/Assignments/crypto/v3/crypto.pro compiled 0.00 sec, 19 clauses % C:/Users/joshu/Documents/CSC366/Assignments/crypto/v4/crypto.pro compiled 0.00 sec, 58 clauses % crypto_nlp_i.pro compiled 0.00 sec, 225 clauses true. 2 ?- parser. |: Use one and two and three and four and five to make zero. problem(numbers(1,2,3,4,5),goal(0)) |: Use nine nine eight seven six to make one. Not a sentence... |: Use nine nine eight seven and six to make one. problem(numbers(9,9,8,7,6),goal(1)) |: Write five in terms of the odd numbers. problem(numbers(1,3,5,7,9),goal(5)) |: Write zero in terms of the first five positive numbers. problem(numbers(1,2,3,4,5),goal(0)) |: Can you make whatever from whatever? Not a sentence... |: Use whatever to make whatever. problem(numbers(5,0,9,14,13),goal(3)) |: Can you make nine from numbers zero through four? problem(numbers(0,1,2,3,4),goal(9)) |: Can you make make zero from two fives and three fours? Not a sentence... |: Can you make zero from two fives and three fours? problem(numbers(5,5,4,4,4),goal(0)) |: Can you make zero from two ones and two twos and one nine? problem(numbers(1,1,2,2,9),goal(0)) |: Can you make nine from two twos one one and three threes? Not a sentence... |: Can you make nine from two twos and one one and three threes? Not a sentence... |: Can you make nine from two twos and one one and two threes? problem(numbers(2,2,1,3,3),goal(9)) 2 ?- interpreter. |: Help me? Not a sentence... |: Use one and two and three and four and five to make zero. ( ( 4 + 5 ) - ( ( 1 + 2 ) * 3 ) ) |: Use one one and two twos and two threes to make nine. ( ( ( 2 * 3 ) - 3 ) * ( 1 + 2 ) ) |: Write five in terms of the odd numbers. ( 9 - ( ( 5 + 7 ) / ( 1 * 3 ) ) ) |: Use whatever to make whatever. ( ( 3 + ( 15 - 9 ) ) - ( 10 - 8 ) ) |: Can you make four with four fours and one one? ( ( 4 + 4 ) / ( ( 4 / 4 ) + 1 ) )