src/back_end/model/text_parser/TextParser.java
/**
     * This method will create the stack containing the Nodes needed to create the tree
     * 
     * @throws UnexpectedCommandException
     * @throws UnexpectedCharacterException
     * @throws ClassNotFoundException
     * @throws SecurityException
     * @throws NoSuchMethodException
     * @throws InvocationTargetException
     * @throws IllegalArgumentException
     * @throws IllegalAccessException
     * @throws InstantiationException
     */
This method will create the stack containing the Nodes needed to create the tree


This method will create the stack containing the Nodes needed to create the tree
private void createNodes (String aText) throws UnexpectedCharacterException, UnexpectedCommandException {
        Map<Integer, List<String>> wordMap = makeExecutableList(aText);
        for (Integer lineNumber : wordMap.keySet()) {
        	INode previousNode = null;
        	for (String word : wordMap.get(lineNumber)) {
        		if (!myNodes.isEmpty()) previousNode = myNodes.peek();
        		myNodes.push(getNode(lineNumber, word, previousNode));
        	}
        }
        myEnvironment.clearMethods();
    }
private void createNodes ( String aText ) throws UnexpectedCharacterException , UnexpectedCommandException { Map < Integer , List < String > > wordMap = makeExecutableList ( aText ) ; for ( Integer lineNumber : wordMap . keySet ( ) ) { INode previousNode = null ; for ( String word : wordMap . get ( lineNumber ) ) { if ( ! myNodes . isEmpty ( ) ) previousNode = myNodes . peek ( ) ; myNodes . push ( getNode ( lineNumber , word , previousNode ) ) ; } } myEnvironment . clearMethods ( ) ; }
This method will create the stack containing the Nodes needed to create the tree
This method will create the stack containing the Nodes needed to create the tree