Skip to content

Commit

Permalink
Removed the no-jump-position-at-last-line limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Nafees10 committed Feb 18, 2021
1 parent 17f9335 commit deca8e9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions source/navm/bytecode.d
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,6 @@ public:
errors ~= "line#"~(i+1).to!string~' '~name~" is an invalid jump position, cannot be digits only.";
continue;
}
// check if its the last line
bool isLastLine = true;
foreach (j; i .. _instructions.length){
if (!_instructions[j].length || _instructions[j][$-1] == ':')
continue;
isLastLine = false;
}
if (isLastLine){
errors ~= "line#"~(i+1).to!string~" jump position at last line is now allowed, follow it by an instruction";
continue;
}
jumpPos[name.lowercase] = instIndex;
continue;
}
Expand Down

0 comments on commit deca8e9

Please sign in to comment.