src/back_end/model/text_parser/TextParser.java
/**
     * Check for whitespace lines and remove comments
     * 
     * @param text
     * @return
     */
Check for whitespace lines and remove comments

@param text
@return
Check for whitespace lines and remove comments @param text @return
private Map<Integer, List<String>> makeExecutableList (String aText) {
        String[] wordList = aText.split(mySyntaxResources.getString("Line"));
        Map<Integer, List<String>> executableMap = new HashMap<Integer, List<String>>();
        for (int i = 0; i < wordList.length; i++) {
            if (wordList[i].length() > 0 &&
                wordList[i].charAt(0) != mySyntaxResources.getString("Comment").charAt(0)) {
                String[] temp = wordList[i].split(mySyntaxResources.getString("Space"));
                List<String> temporaryStrings = new ArrayList<String>();
                for (int j = 0; j < temp.length; j++) {
                    temporaryStrings.add(temp[j]);
                }
                executableMap.put(i + 1, temporaryStrings);
            }
        }
        return executableMap;
    }
private Map < Integer , List < String > > makeExecutableList ( String aText ) { String [ ] wordList = aText . split ( mySyntaxResources . getString ( "Line" ) ) ; Map < Integer , List < String > > executableMap = new HashMap < Integer , List < String > > ( ) ; for ( int i = 0 ; i < wordList . length ; i ++ ) { if ( wordList [ i ] . length ( ) > 0 && wordList [ i ] . charAt ( 0 ) != mySyntaxResources . getString ( "Comment" ) . charAt ( 0 ) ) { String [ ] temp = wordList [ i ] . split ( mySyntaxResources . getString ( "Space" ) ) ; List < String > temporaryStrings = new ArrayList < String > ( ) ; for ( int j = 0 ; j < temp . length ; j ++ ) { temporaryStrings . add ( temp [ j ] ) ; } executableMap . put ( i + 1 , temporaryStrings ) ; } } return executableMap ; }
Check for whitespace lines and remove comments
Check for whitespace lines and remove comments