EpilogJS
What
versus
How
 

grind


grind(expression) → string

The subroutine grind takes an expression as argument and returns as value the string representation of the expression in Epilog syntax.

Call: grind('a') Exit: a Call: grind('X') Exit: X Call: grind(["p","a",["f","b"],"c"]) Exit: p(a,f(b),c)

Note also variables that begin with _ are rendered as _ (without any characters following the underscores, making them into anonymous variables. .

Call: grind(["p","a","_1","_2","b"]) Exit: p(a,_,_,d)



Comments and complaints to genesereth@stanford.edu.