Bläddra i källkod

Forbid recursive routines

DricomDragon 5 år sedan
förälder
incheckning
99f692733c
1 ändrade filer med 1 tillägg och 1 borttagningar
  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 {