Explorar el Código

Forbid recursive routines

DricomDragon hace 5 años
padre
commit
99f692733c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      logoPlayer/galgas-sources/logoPlayer-syntax.galgas

+ 1 - 1
logoPlayer/galgas-sources/logoPlayer-syntax.galgas

@@ -22,11 +22,11 @@ syntax logoPlayer_syntax (logoPlayer_lexique) {
   rule <routine> ?! @routineMap ioRoutineArray {
   rule <routine> ?! @routineMap ioRoutineArray {
     $ROUTINE$
     $ROUTINE$
     $identifier$ ?let @lstring routineId
     $identifier$ ?let @lstring routineId
-    [ !? ioRoutineArray insertKey !routineId ]
     log routineId
     log routineId
     $BEGIN$
     $BEGIN$
     <instructions> !? ioRoutineArray
     <instructions> !? ioRoutineArray
     $END$
     $END$
+    [ !? ioRoutineArray insertKey !routineId ]
   } 
   } 
 
 
   rule <instructions> ?! @routineMap ioRoutineArray {
   rule <instructions> ?! @routineMap ioRoutineArray {