Skip to content

Commit

Permalink
Fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Thihup committed May 8, 2024
1 parent 7cee6c4 commit 396006c
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package dev.thihup.jvisualg.backend.java;

import dev.thihup.jvisualg.frontend.node.Location;
import dev.thihup.jvisualg.frontend.node.Node;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package dev.thihup.jvisualg.frontend.node;

import org.antlr.v4.runtime.ParserRuleContext;

public record Location(
int startLine,
int startColumn,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package dev.thihup.jvisualg.frontend;

import dev.thihup.jvisualg.frontend.node.Node;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;

import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
import java.util.function.Function;
import java.util.stream.Stream;

class MainTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
import org.eclipse.lsp4j.*;
import org.eclipse.lsp4j.debug.InitializeRequestArguments;
import org.eclipse.lsp4j.debug.OutputEventArguments;
import org.eclipse.lsp4j.debug.SetBreakpointsArguments;
import org.eclipse.lsp4j.debug.SourceBreakpoint;
import org.eclipse.lsp4j.debug.launch.DSPLauncher;
import org.eclipse.lsp4j.debug.services.IDebugProtocolServer;
import org.eclipse.lsp4j.jsonrpc.Launcher;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import dev.thihup.jvisualg.frontend.Main;
import dev.thihup.jvisualg.frontend.node.Location;
import org.eclipse.lsp4j.debug.*;
import org.eclipse.lsp4j.debug.services.IDebugProtocolClient;
import org.eclipse.lsp4j.debug.services.IDebugProtocolServer;

import java.io.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package dev.thihup.jvisualg.interpreter;

import dev.thihup.jvisualg.frontend.ASTResult;
import dev.thihup.jvisualg.frontend.Main;
import dev.thihup.jvisualg.frontend.node.Location;
import dev.thihup.jvisualg.frontend.node.Node;
import org.antlr.v4.runtime.misc.Pair;

import java.io.*;
import java.math.RoundingMode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@

import dev.thihup.jvisualg.frontend.Main;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.EnumSource;

import java.io.*;
import java.math.RoundingMode;
import java.util.concurrent.locks.ReentrantLock;

import static org.junit.jupiter.api.Assertions.*;

class InterpreterTest {
@Test
void test() {
StringWriter stringWriter = new StringWriter();
new Interpreter(Reader.nullReader(), stringWriter)
new Interpreter(Reader.nullReader(), stringWriter, new ReentrantLock())
.run(Main.buildAST(new ByteArrayInputStream("""
algoritmo "Teste"
var
Expand Down Expand Up @@ -443,7 +441,7 @@ public int read(char[] cbuf, int off, int len) throws IOException {
}
};

new Interpreter(stringReader, stringWriter)
new Interpreter(stringReader, stringWriter, new ReentrantLock())
.run(Main.buildAST(new ByteArrayInputStream("""
algoritmo "Teste"
var
Expand Down

0 comments on commit 396006c

Please sign in to comment.