]> gitweb.factorcode.org Git - factor.git/blob - extra/math/derivatives/syntax/syntax.factor
1dadfd18c83c65182a8a7ce9c1b100a4732b3ce1
[factor.git] / extra / math / derivatives / syntax / syntax.factor
1 ! Copyright (C) 2009 Jason W. Merrill.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: kernel parser words effects accessors sequences 
4     math.ranges ;
5     
6 IN: math.derivatives.syntax
7
8 SYNTAX: DERIVATIVE: scan-object dup stack-effect in>> length [1,b] 
9     [ drop scan-object ] map 
10     "derivative" set-word-prop ;