瀏覽代碼

Forbid recursive routines

DricomDragon 5 年之前
父節點
當前提交
99f692733c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 {