Browse Source

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

git-svn-id: trunk@16215 -
marco 15 years ago
parent
commit
6da59076f8
1 changed files with 6 additions and 0 deletions
  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));
         CreateBlock(CurBlock.AddWhileDo(Condition));
         ExpectToken(tkdo);
         ExpectToken(tkdo);
       end;
       end;
+    tkgoto:
+      begin
+        nexttoken;
+        curblock.AddCommand('goto '+curtokenstring);
+        expecttoken(tkSemiColon);
+      end;
     tkfor:
     tkfor:
       begin
       begin
         // for VarName := StartValue to EndValue do
         // for VarName := StartValue to EndValue do