Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Intento de tarea 1
objeto :- write('{'),aux1, write('}'). aux1 :- read(X),(X='atributo'->atributo; X='fin'->write('')). atributo :-cadena, write(':'),valor,aux2. arreglo :- write('['),aux3, write(']'). aux2 :- read(X),(X='atributo'->write(','),atributo; X='fin'->write('')). aux3 :- read(X),(X='valor'->valor,aux4; X='fin'->write('')). aux4 :- read(X),(X='valor'->write(','),valor,aux4; X='fin'->write('')). aux5 :- read(X),(X='valor'->write(','),valor,aux5; X='fin'->write('')). aux6 :- read(X),(X='valor'->write(','),valor,aux6; X='fin'->write('')). aux7 :- read(X),(X='valor'->write(','),valor,aux7; X='fin'->write('')). aux8 :- read(X),(X='valor'->write(','),valor,aux8; X='fin'->write('')). aux9 :- read(X),(X='valor'->write(','),valor,aux9; X='fin'->write('')). aux10 :- read(X),(X='valor'->write(','),valor,aux10; X='fin'->write('')). cadena :- read(X),write('"'),write(X),write('"'). numero :- read(X),write(X). valor :-read(T),(T='cadena'->cadena; T='numero'->numero; T='arreglo'->arreglo; T='objeto'->objeto). :- objeto.
run
|
edit
|
history
|
help
0
EMPRESA - FINAL
Base de conocimiento con función for
Clasificador de objetos isan
Chem
Base de Conocimiento Espinoza Francisco
Prolog-superquery2
LOCO 0.2 inicio de ciclo
Kaori Olvera Arao
Corona Lucas Elimm - Examen parte 3
isan