11 years agoallow observer to enter N facts
Matt S Trout [Wed, 19 Feb 2014 21:07:37 +0000]
allow observer to enter N facts

11 years agoslightly less useless error on lack of variable
Matt S Trout [Wed, 19 Feb 2014 21:07:02 +0000]
slightly less useless error on lack of variable

11 years agoghetto copy working - see body of commit message
Matt S Trout [Tue, 18 Feb 2014 15:57:28 +0000]
ghetto copy working - see body of commit message

rule ghetto_copy {FromFileName ToFileName} {
  exists {F T} {
    file_at F FromFileName
    file_at T ToFileName
    foreach L { contains_line F L } { contains_line T L }
  }
}

$ query {} {ghetto_copy 'from' 'to'}

^^ this actually works. I think I am afraid.

11 years agofactor out FindIsh, implement ForEach
Matt S Trout [Tue, 18 Feb 2014 15:40:36 +0000]
factor out FindIsh, implement ForEach

11 years agofindall
Matt S Trout [Tue, 18 Feb 2014 13:30:00 +0000]
findall

11 years agocreate file with initial content
Matt S Trout [Fri, 14 Feb 2014 21:52:17 +0000]
create file with initial content

11 years agorewrite file correctly chaining from create file
Matt S Trout [Fri, 14 Feb 2014 21:49:10 +0000]
rewrite file correctly chaining from create file

11 years agoeval cage for the shell
Matt S Trout [Fri, 14 Feb 2014 21:20:12 +0000]
eval cage for the shell

11 years agofile content handling
Matt S Trout [Fri, 14 Feb 2014 21:19:43 +0000]
file content handling

11 years agoproduce a useful error message
Matt S Trout [Fri, 14 Feb 2014 19:54:21 +0000]
produce a useful error message

11 years agomake MemberOf handle a bound RHS
Matt S Trout [Fri, 14 Feb 2014 19:54:10 +0000]
make MemberOf handle a bound RHS

11 years agoadd ->all method to SetOver
Matt S Trout [Fri, 14 Feb 2014 19:53:55 +0000]
add ->all method to SetOver

11 years agomove actions to a separate state attribute
Matt S Trout [Fri, 14 Feb 2014 10:24:49 +0000]
move actions to a separate state attribute

11 years agoadd cuts to avoid multiple action paths
Matt S Trout [Fri, 14 Feb 2014 09:35:09 +0000]
add cuts to avoid multiple action paths

11 years agoSetPathMode action
Matt S Trout [Fri, 14 Feb 2014 09:01:41 +0000]
SetPathMode action

11 years agoadd rule and exists built-ins to shell
Matt S Trout [Fri, 14 Feb 2014 08:33:40 +0000]
add rule and exists built-ins to shell

11 years agocreate directory and create file, now with mode setting
Matt S Trout [Fri, 14 Feb 2014 07:28:26 +0000]
create directory and create file, now with mode setting

11 years agopredicate op forgot to expand constants
Matt S Trout [Fri, 14 Feb 2014 07:28:08 +0000]
predicate op forgot to expand constants

11 years agoshell tweaks
Matt S Trout [Fri, 14 Feb 2014 07:15:44 +0000]
shell tweaks

11 years agoadd ModifyAction op
Matt S Trout [Fri, 14 Feb 2014 07:14:55 +0000]
add ModifyAction op

11 years agofirst sketch towards shell
Matt S Trout [Fri, 14 Feb 2014 06:23:58 +0000]
first sketch towards shell

11 years agobeginnings of FS lib
Matt S Trout [Fri, 14 Feb 2014 06:23:50 +0000]
beginnings of FS lib

11 years agomove actions to being held by fact objects
Matt S Trout [Tue, 11 Feb 2014 19:54:12 +0000]
move actions to being held by fact objects

11 years agouse VarRef for derived bindings
Matt S Trout [Tue, 11 Feb 2014 18:56:34 +0000]
use VarRef for derived bindings

11 years agouse FactRef objects to sanify action handling
Matt S Trout [Tue, 11 Feb 2014 18:30:21 +0000]
use FactRef objects to sanify action handling

11 years agoindirect via resolve_value method
Matt S Trout [Tue, 11 Feb 2014 14:35:56 +0000]
indirect via resolve_value method

11 years agonew Op::Predicate
Matt S Trout [Tue, 11 Feb 2014 08:09:10 +0000]
new Op::Predicate

11 years agoremove the _then bind methods
Matt S Trout [Tue, 11 Feb 2014 07:23:25 +0000]
remove the _then bind methods

11 years agotweak action methods in Result
Matt S Trout [Tue, 11 Feb 2014 07:23:04 +0000]
tweak action methods in Result

11 years agoseparate scope setup in rule bodies into its own op
Matt S Trout [Tue, 11 Feb 2014 07:03:00 +0000]
separate scope setup in rule bodies into its own op

11 years agofactor action execution out into solver method
Matt S Trout [Sun, 9 Feb 2014 19:20:55 +0000]
factor action execution out into solver method

11 years agoacion infrastructure
Matt S Trout [Sat, 8 Feb 2014 22:33:10 +0000]
acion infrastructure

11 years agoallow value scalarref, refactor
Matt S Trout [Mon, 3 Feb 2014 13:12:32 +0000]
allow value scalarref, refactor

11 years agoadd exists, convert dot_ssh to use prop for everything
Matt S Trout [Mon, 3 Feb 2014 13:07:41 +0000]
add exists, convert dot_ssh to use prop for everything

11 years agoprop op
Matt S Trout [Mon, 3 Feb 2014 12:55:14 +0000]
prop op

11 years agodelete dead code from Not op
Matt S Trout [Mon, 3 Feb 2014 12:54:04 +0000]
delete dead code from Not op

11 years agoroot set bind by id
Matt S Trout [Mon, 3 Feb 2014 11:59:21 +0000]
root set bind by id

11 years agointroduce root set
Matt S Trout [Mon, 3 Feb 2014 11:23:22 +0000]
introduce root set

11 years agobind_var_then -> bind_value
Matt S Trout [Mon, 3 Feb 2014 11:13:20 +0000]
bind_var_then -> bind_value

11 years agonot and action infrastructure
Matt S Trout [Mon, 3 Feb 2014 09:34:58 +0000]
not and action infrastructure

11 years agoobservers
Matt S Trout [Mon, 3 Feb 2014 06:51:15 +0000]
observers

11 years agocut support
Matt S Trout [Mon, 3 Feb 2014 04:51:10 +0000]
cut support

11 years agostop using return_stack directly in tests
Matt S Trout [Mon, 3 Feb 2014 04:47:58 +0000]
stop using return_stack directly in tests

11 years agostart of dot_ssh test
Matt S Trout [Mon, 3 Feb 2014 03:46:25 +0000]
start of dot_ssh test

11 years agoadd set_value API
Matt S Trout [Mon, 3 Feb 2014 03:45:47 +0000]
add set_value API

11 years agofactor out set/stream code
Matt S Trout [Mon, 3 Feb 2014 03:12:20 +0000]
factor out set/stream code

11 years agofactor out arg handling
Matt S Trout [Mon, 3 Feb 2014 02:40:55 +0000]
factor out arg handling

11 years agofactor variable expansion out of assignment
Matt S Trout [Mon, 3 Feb 2014 02:22:51 +0000]
factor variable expansion out of assignment

11 years agoremove member lookup op
Matt S Trout [Mon, 3 Feb 2014 00:20:48 +0000]
remove member lookup op

11 years agocleanup, call-as-default
Matt S Trout [Sun, 2 Feb 2014 23:29:51 +0000]
cleanup, call-as-default

11 years agowheeeeeeeeee
Matt S Trout [Thu, 30 Jan 2014 22:35:58 +0000]
wheeeeeeeeee

11 years agossh key sketch test
Matt S Trout [Mon, 27 Jan 2014 10:21:59 +0000]
ssh key sketch test

11 years agofirst test for observer code
Matt S Trout [Mon, 20 Jan 2014 19:15:05 +0000]
first test for observer code

11 years agoor via backtracking
Matt S Trout [Mon, 20 Jan 2014 13:47:48 +0000]
or via backtracking

11 years agoadd but method to state
Matt S Trout [Mon, 20 Jan 2014 12:39:08 +0000]
add but method to state

11 years agomove return stack code back to test
Matt S Trout [Mon, 20 Jan 2014 12:35:51 +0000]
move return stack code back to test

11 years agobasic return stack usage
Matt S Trout [Mon, 20 Jan 2014 12:25:53 +0000]
basic return stack usage

11 years agotest more complex stream
Matt S Trout [Mon, 20 Jan 2014 11:29:48 +0000]
test more complex stream

11 years agoout of options handler
Matt S Trout [Mon, 20 Jan 2014 11:04:42 +0000]
out of options handler

11 years agomove backtracking into a stream
Matt S Trout [Mon, 20 Jan 2014 10:21:43 +0000]
move backtracking into a stream

11 years agoinitial import
Matt S Trout [Mon, 20 Jan 2014 09:56:37 +0000]
initial import