Explorar el Código

* fcl-passrc goto support (added to an empty command), mantis 16476

git-svn-id: trunk@16215 -
marco hace 15 años
padre
commit
6da59076f8
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      packages/fcl-passrc/src/pparser.pp

+ 6 - 0
packages/fcl-passrc/src/pparser.pp

@@ -2728,6 +2728,12 @@ begin
         CreateBlock(CurBlock.AddWhileDo(Condition));
         ExpectToken(tkdo);
       end;
+    tkgoto:
+      begin
+        nexttoken;
+        curblock.AddCommand('goto '+curtokenstring);
+        expecttoken(tkSemiColon);
+      end;
     tkfor:
       begin
         // for VarName := StartValue to EndValue do