diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-11-25 16:33:08 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-11-25 16:33:08 -0600 |
commit | c7f014aef2c86d7a17f2642180732a6ba9b2a125 (patch) | |
tree | d3439be25bf3ef025abb67144fc9c2fe1114530b /pruebas | |
parent | 43ca3b1370fcb9e7cb8c3126ebf4e6ed7833fc13 (diff) | |
download | javanol-c7f014aef2c86d7a17f2642180732a6ba9b2a125.tar.gz javanol-c7f014aef2c86d7a17f2642180732a6ba9b2a125.tar.bz2 javanol-c7f014aef2c86d7a17f2642180732a6ba9b2a125.zip |
¡Ya hay funciones y (algunas) expresiones!
Diffstat (limited to 'pruebas')
-rw-r--r-- | pruebas/sintaxis2.es | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pruebas/sintaxis2.es b/pruebas/sintaxis2.es index c89bee0..fdb9dd3 100644 --- a/pruebas/sintaxis2.es +++ b/pruebas/sintaxis2.es @@ -2,5 +2,12 @@ entero a = 10; entero b = 20; booleano c = verdadero; caracter d; -funcion entero a (entero a, cadena b); -funcion caracter b (booleano a);
\ No newline at end of file +funcion entero a (entero a, cadena b) { + b = 40 + 2 * 10; + imprimir ("Hola"); + leer d; +}; +funcion caracter b (booleano a) { + imprimir ("Adiós"); + leer x; +};
\ No newline at end of file |