mirror of
				https://github.com/DanilaFe/abacus
				synced 2025-11-03 18:33:41 -08:00 
			
		
		
		
	Add a TreeValueOperator.
This commit is contained in:
		
							parent
							
								
									8a3c614602
								
							
						
					
					
						commit
						ca2681cc21
					
				@ -0,0 +1,15 @@
 | 
			
		||||
package org.nwapw.abacus.function
 | 
			
		||||
 | 
			
		||||
import org.nwapw.abacus.number.NumberInterface
 | 
			
		||||
import javax.swing.tree.TreeNode
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * An operator that operates on trees.
 | 
			
		||||
 *
 | 
			
		||||
 * This operator operates on parse trees, returning, however a number.
 | 
			
		||||
 * @param associativity the associativity of the operator.
 | 
			
		||||
 * @param type the type of the operator (infix, postfix, etc)
 | 
			
		||||
 * @param precedence the precedence of the operator.
 | 
			
		||||
 */
 | 
			
		||||
abstract class TreeValueOperator(associativity: OperatorAssociativity, type: OperatorType,
 | 
			
		||||
                                 precedence: Int) : ReducerApplicable<TreeNode, NumberInterface, NumberInterface>
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user