Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 38 additions & 40 deletions inputs/test.txt
Original file line number Diff line number Diff line change
@@ -1,50 +1,48 @@
main(){
init {
a1, b2 : int
c33, d4, e5 : float
f6f, g : string

#+ Ejemplo de una variable mal declarada +#
#+ fecha : date +#
#+ h : foat +#
}

a1 := -125
b2 := a1
init {
a1, b2 : int
c33, d4, e5 : float
f6f, g : string

#+ Ejemplo de una variable mal declarada +#
#+ fecha : date +#
#+ h : foat +#
}

c33 := 5.34
d4 := c33-2.1
e5 := -5.1 #+ numero "negativo" +#
a1 := -125
b2 := a1

f6f := "hola \n como estas"
g := "que onda"
c33 := 5.34
d4 := c33-2.1
e5 := -5.1 #+ numero "negativo" +#

#+ comentario +#
f6f := "hola \n como estas"
g := "que onda"

if(a1 > b2) {
a1 := 10
}
else {
b2 := 20
}
#+ comentario +#

if(a1 > b2) {
a1 := 10
}
else {
b2 := 20
}

while(c33 == 5.34 and d4 <= 2 < c33 or e5 >= 1) {
a1 := a1+1
if(not isZero(a1)) {
a1 := -125
}
while(c33 == 5.34 and d4 <= 2 < c33 or e5 >= 1) {
a1 := a1+1
if(not isZero(a1)) {
a1 := -125
}
}

write("hola")
write(g)

read(f6f)
write("hola")
write(g)

#+ Ejemplo de error por asignacion incorrecta +#
#+ x = 10 +#
read(f6f)

#+ Ejemplo de error por entero mayor a 64 bits +#
#+ x:= 18446744073709551616 +#
#+ Ejemplo de error por asignacion incorrecta +#
#+ x = 10 +#

convDate(01-02-1900)
}
#+ Ejemplo de error por entero mayor a 64 bits +#
#+ x:= 18446744073709551616 +#

convDate(01-02-1900)
Loading