14 lines
		
	
	
		
			773 B
		
	
	
	
		
			Factor
		
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			773 B
		
	
	
	
		
			Factor
		
	
	
| USING: help.markup help.syntax sequences quotations words 
 | |
| compiler.tree stack-checker.errors ;
 | |
| IN: compiler.tree.builder
 | |
| 
 | |
| HELP: build-tree
 | |
| { $values { "word/quot" { $or word quotation } } { "nodes" "a sequence of nodes" } }
 | |
| { $description "Attempts to construct tree SSA IR from a quotation." }
 | |
| { $notes "This is the first stage of the compiler." }
 | |
| { $errors "Throws an " { $link inference-error } " if stack effect inference fails." } ;
 | |
| 
 | |
| HELP: build-sub-tree
 | |
| { $values { "#call" #call } { "word/quot" { $or word quotation } } { "nodes/f" { $maybe "a sequence of nodes" } } }
 | |
| { $description "Attempts to construct tree SSA IR from a quotation, starting with an initial data stack of values from the call site. Outputs " { $link f } " if stack effect inference fails." } ;
 |