aboutsummaryrefslogtreecommitdiff
path: root/pruebas
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-11-25 19:07:58 -0600
committerIván Ávalos <avalos@disroot.org>2022-11-25 19:07:58 -0600
commit4b2fad150a292f882cee408d7f9746715225f7cb (patch)
treefe02aa65491aeec869e5c5427e2229fc1633bbf7 /pruebas
parentea2d6ab3cc66e69d423e502407f272f634c3e070 (diff)
downloadjavanol-4b2fad150a292f882cee408d7f9746715225f7cb.tar.gz
javanol-4b2fad150a292f882cee408d7f9746715225f7cb.tar.bz2
javanol-4b2fad150a292f882cee408d7f9746715225f7cb.zip
Se añade `retornar', `detener' y `continuar'
Diffstat (limited to 'pruebas')
-rw-r--r--pruebas/sintaxis2.es6
1 files changed, 6 insertions, 0 deletions
diff --git a/pruebas/sintaxis2.es b/pruebas/sintaxis2.es
index c8cbb59..09e5f1f 100644
--- a/pruebas/sintaxis2.es
+++ b/pruebas/sintaxis2.es
@@ -9,11 +9,17 @@ funcion entero a (entero a, cadena b) {
imprimir (b + 20);
} sino b;
leer d;
+ retornar 10 + 20;
};
funcion caracter b (booleano a) {
imprimir ("Adiós");
mientras (a < 10) {
imprimir ("Hola");
+ si (a >= 10) {
+ continuar;
+ } sino detener;
+ a = a + 1;
};
leer x;
+ retornar;
}; \ No newline at end of file