Skip to content

Commit b52b4d8

Browse files
committed
polishing rough ends
1 parent 59e99b1 commit b52b4d8

File tree

6 files changed

+108
-283
lines changed

6 files changed

+108
-283
lines changed

.idea/uiDesigner.xml

-124
This file was deleted.

ExceptionFramework/src/main/java/edu/upvictoria/poo/Analyzer.java

-4
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ public Analyzer(){
2727
keywords.add("INSERT INTO");
2828
keywords.add("DELETE FROM");
2929
keywords.add("UPDATE");
30-
keywords.add("SET");
3130
keywords.add("SELECT");
32-
keywords.add("VALUES");
33-
keywords.add("FROM");
34-
keywords.add("WHERE");
3531

3632
operators.add("DIV");
3733
operators.add("AND");

ExceptionFramework/src/main/java/edu/upvictoria/poo/App.java

+1-13
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44

55
package edu.upvictoria.poo;
66

7-
import edu.upvictoria.poo.exceptions.SQLSyntaxException;
8-
9-
import java.io.IOException;
10-
import java.text.ParseException;
11-
import java.util.ArrayList;
12-
137
public class App {
148
public static void main( String[] args ) {
159
App app = new App();
@@ -24,14 +18,8 @@ public void run(){
2418

2519
while(true){
2620
System.out.print("$> ");
27-
try {
28-
line = reader.consoleReader(analyzer);
29-
} catch (Exception e){
30-
System.out.println("ERR: " + e.getMessage() + "\n");
31-
continue;
32-
}
33-
3421
try{
22+
line = reader.consoleReader(analyzer);
3523
analyzer.analyzeSyntax(line);
3624
} catch (Exception e){
3725
System.out.println("ERR: " + e.getMessage() + "\n");

0 commit comments

Comments
 (0)