Skip to content

Commit

Permalink
Fix bug when first letter of class name is skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
snaulX committed Sep 22, 2019
1 parent 97c31ee commit 71c763e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion wolvm/Stack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ public static Stack Parse(string stack_code)
{
while (current != '}')
{
current = stack_code[++position];
if (char.IsWhiteSpace(current) || current == '{')
current = stack_code[++position];
while (char.IsWhiteSpace(current)) //skip whitespaces
{
try
Expand Down
2 changes: 1 addition & 1 deletion wolvm/VirtualMachine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static void Main(string[] args)
break;
case "-test":
test = true;
Run(new StreamReader(File.OpenRead(args[0])).ReadToEnd());
Run(new StreamReader(File.OpenRead(args[1])).ReadToEnd());
break;
default:
Run(new StreamReader(File.OpenRead(args[0])).ReadToEnd());
Expand Down

0 comments on commit 71c763e

Please sign in to comment.