Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Tarea Array
object :- write('{'), read(X),(X='attribute'->attribute; write('')),open,write('}'). open:- read(X),(X='attribute'->write(','),attribute,open; X='end'->write('');X='other'->other; X='endarray'->write(']')). attribute:-bracket, write(':'), valor. valor:- read(X), (X='number'->number;X='bracket'->bracket; X='object'->object;X='array'->array). bracket:-write('"'),read(X),write(X),write('"'). array:-write('['),object,close,write(']'). other:- write(','),object,close. close:- read(X),(X='other'->other;X='endarray'->write('')). number:- read(X),write(X). :- object.
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Hector G Paredes Lopez - 3NM70 - Tarea Queries
Inicio del objeto empresa
Isan
Otro
Ge
Productivas
jproba inicio 10 nov - bueno con llaves y corchetes
json con objetos y arreglos recursivos
Ferrer Valencia Diego - Codificar árboles de decisión estructurada
task3
Please log in to post a comment.