mirror of
				https://github.com/DanilaFe/abacus
				synced 2025-11-03 18:33:41 -08:00 
			
		
		
		
	Fix mismatched parentheses causing exceptions.
This commit is contained in:
		
							parent
							
								
									0bcb3b25d9
								
							
						
					
					
						commit
						a6832e09f4
					
				@ -162,6 +162,7 @@ public class ShuntingYardParser implements Parser<Match<TokenType>>, PluginListe
 | 
			
		||||
    @Override
 | 
			
		||||
    public TreeNode constructTree(List<Match<TokenType>> tokens) {
 | 
			
		||||
        tokens = intoPostfix(new ArrayList<>(tokens));
 | 
			
		||||
        if(tokens == null) return null;
 | 
			
		||||
        Collections.reverse(tokens);
 | 
			
		||||
        return constructRecursive(tokens);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user