Performed some minor cleaning
This commit is contained in:
		
							parent
							
								
									8cdeda7cb3
								
							
						
					
					
						commit
						a3a49a2084
					
				| @ -1,10 +1,6 @@ | ||||
| package scanner; | ||||
| 
 | ||||
| import static util.Characters.BACKSLASH; | ||||
| import static util.Characters.DOUBLE_QUOTE; | ||||
| import static util.Characters.EOF; | ||||
| import static util.Characters.NEWLINE; | ||||
| import static util.Characters.SEMICOLON; | ||||
| import static util.Characters.*; | ||||
| 
 | ||||
| import java.io.FilterInputStream; | ||||
| import java.io.IOException; | ||||
| @ -41,10 +37,6 @@ public class LispFilterInputStream extends FilterInputStream { | ||||
|         previousCharacter = nextCharacter; | ||||
|         nextCharacter = super.read(); | ||||
| 
 | ||||
|         indicateEncounterWithStringBoundary(); | ||||
|     } | ||||
| 
 | ||||
|     private void indicateEncounterWithStringBoundary() { | ||||
|         if (haveEncounteredStringBoundary()) | ||||
|             isInQuotedString = !isInQuotedString; | ||||
|     } | ||||
|  | ||||
| @ -1,6 +1,9 @@ | ||||
| package scanner; | ||||
| 
 | ||||
| import static util.Characters.*; | ||||
| import static util.Characters.BACKSLASH; | ||||
| import static util.Characters.DOUBLE_QUOTE; | ||||
| import static util.Characters.EOF; | ||||
| import static util.Characters.NEWLINE; | ||||
| 
 | ||||
| import java.io.BufferedInputStream; | ||||
| import java.io.IOException; | ||||
|  | ||||
| @ -5,6 +5,8 @@ import java.util.Map; | ||||
| 
 | ||||
| public class Characters { | ||||
| 
 | ||||
|     public static final int EOF = -1; | ||||
| 
 | ||||
|     public static final char BACKSLASH = '\\'; | ||||
|     public static final char DOUBLE_QUOTE = '\"'; | ||||
|     public static final char HASH = '#'; | ||||
| @ -17,8 +19,6 @@ public class Characters { | ||||
|     public static final char SEMICOLON = ';'; | ||||
|     public static final char SINGLE_QUOTE = '\''; | ||||
|     public static final char TICK_MARK = '`'; | ||||
| 
 | ||||
|     public static final int EOF = -1; | ||||
|      | ||||
|     public static final Map<Character, Boolean> illegalIdentifierCharacters = new HashMap<>(); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user