10 years agomove the actual doing stuff code for FS lib into a Guts.pm
Matt S Trout [Sat, 22 Feb 2014 11:51:13 +0000]
move the actual doing stuff code for FS lib into a Guts.pm

10 years agoeliminate support for dead arrayref argspec type
Matt S Trout [Sat, 22 Feb 2014 09:59:25 +0000]
eliminate support for dead arrayref argspec type

10 years agoexpunge [ value => $value ] style in favour of scalarrefs
Matt S Trout [Sat, 22 Feb 2014 09:08:31 +0000]
expunge [ value => $value ] style in favour of scalarrefs

10 years agoexpunge exists entirely
Matt S Trout [Sat, 22 Feb 2014 06:07:44 +0000]
expunge exists entirely

10 years agoeliminate variable name requirement from query()
Matt S Trout [Sat, 22 Feb 2014 05:48:50 +0000]
eliminate variable name requirement from query()

10 years agomake exists unnecessary
Matt S Trout [Sat, 22 Feb 2014 05:31:55 +0000]
make exists unnecessary

10 years agorefactor Lib::FS
Matt S Trout [Wed, 19 Feb 2014 21:12:40 +0000]
refactor Lib::FS

10 years agoadd dump command to shell to start enabling debugging
Matt S Trout [Wed, 19 Feb 2014 21:10:25 +0000]
add dump command to shell to start enabling debugging

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

10 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

10 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.

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

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

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

10 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

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

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

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

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

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

10 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

10 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

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

10 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

10 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

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

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

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

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

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

10 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

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

10 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

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

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

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

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

10 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

10 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

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

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

10 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

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

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

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

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

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

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

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

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

10 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

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

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

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

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

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

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

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

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

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

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

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

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

10 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

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

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

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

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

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