File tree 6 files changed +108
-283
lines changed
ExceptionFramework/src/main/java/edu/upvictoria/poo
6 files changed +108
-283
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -27,11 +27,7 @@ public Analyzer(){
27
27
keywords .add ("INSERT INTO" );
28
28
keywords .add ("DELETE FROM" );
29
29
keywords .add ("UPDATE" );
30
- keywords .add ("SET" );
31
30
keywords .add ("SELECT" );
32
- keywords .add ("VALUES" );
33
- keywords .add ("FROM" );
34
- keywords .add ("WHERE" );
35
31
36
32
operators .add ("DIV" );
37
33
operators .add ("AND" );
Original file line number Diff line number Diff line change 4
4
5
5
package edu .upvictoria .poo ;
6
6
7
- import edu .upvictoria .poo .exceptions .SQLSyntaxException ;
8
-
9
- import java .io .IOException ;
10
- import java .text .ParseException ;
11
- import java .util .ArrayList ;
12
-
13
7
public class App {
14
8
public static void main ( String [] args ) {
15
9
App app = new App ();
@@ -24,14 +18,8 @@ public void run(){
24
18
25
19
while (true ){
26
20
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
-
34
21
try {
22
+ line = reader .consoleReader (analyzer );
35
23
analyzer .analyzeSyntax (line );
36
24
} catch (Exception e ){
37
25
System .out .println ("ERR: " + e .getMessage () + "\n " );
You can’t perform that action at this time.
0 commit comments