Explorar o código

Forbid recursive routines

DricomDragon %!s(int64=5) %!d(string=hai) anos
pai
achega
99f692733c
Modificáronse 1 ficheiros con 1 adicións e 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 {
     $ROUTINE$
     $identifier$ ?let @lstring routineId
-    [ !? ioRoutineArray insertKey !routineId ]
     log routineId
     $BEGIN$
     <instructions> !? ioRoutineArray
     $END$
+    [ !? ioRoutineArray insertKey !routineId ]
   } 
 
   rule <instructions> ?! @routineMap ioRoutineArray {