Skip to content

Commit 2d5d611

Browse files
committed
latest as of 20 Apr 2019, hoijui/master, c5324c3
1 parent dbf7b6d commit 2d5d611

File tree

8 files changed

+33
-32
lines changed

8 files changed

+33
-32
lines changed

basis-escher.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ <h1>Escher faculty</h1>
2020
<h2>Index reflex</h2>
2121

2222
<p>Every running Escher circuit program has been <a href="program.html">materialized relative to an index</a>.
23-
The index reflex, <code>escher.Index</code>, is a noun reflex that emits the index relative to which
23+
The index reflex, <code>e.Index</code>, is a noun reflex that emits the index relative to which
2424
the current circuit has been materialized.
2525

2626
<p>The following program, for instance, will print out the index used to materialize the invoking circuit program:
2727

2828
<pre>
2929
{
30-
*Show = *escher.Index
30+
*Show = *e.Index
3131
}
3232
</pre>
3333

3434
<h2>Materialize reflex</h2>
3535

36-
<p>The materialize reflex, named <code>escher.Materialize</code>,
36+
<p>The materialize reflex, named <code>e.Materialize</code>,
3737
materializes a program circuit relative to an index of faculties.
3838

3939
<p>The reflex requires that two valves, <code>:View</code> and <code>:Residue</code>, be connected.
@@ -49,14 +49,14 @@ <h2>Materialize reflex</h2>
4949

5050
<pre>
5151
{
52-
m *escher.Materialize
53-
f *Fork
52+
m *e.Materialize
53+
f *e.Fork
5454

5555
m:View = f:
5656
f:Program = {
5757
*Show = "Hello from the child circuit program."
5858
}
59-
f:Index = *escher.Index
59+
f:Index = *e.Index
6060
m:Residue = *Show
6161
}
6262
</pre>
@@ -70,7 +70,7 @@ <h2>Materialize reflex</h2>
7070
</pre>
7171

7272
<p>using the same index that was used to materialize the parent program, as acquired from
73-
the <code>*escher.Index</code> reflex in the parent program.
73+
the <code>*e.Index</code> reflex in the parent program.
7474

7575

7676
</div>

basis-flow.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ <h4>Split direction</h4>
7272

7373
<pre>
7474
{
75-
f *Fork
75+
f *e.Fork
7676
f: = {
7777
x "Hello"
7878
y "World"
@@ -102,7 +102,7 @@ <h4>Merge direction</h4>
102102

103103
<pre>
104104
{
105-
f *Fork
105+
f *e.Fork
106106
f: = *Show
107107
f:x = "New"
108108
f:y = "York"

basis-os.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ <h2>Process execution reflex</h2>
8080
Args { "/" }
8181
}
8282

83-
yio *Fork
83+
yio *e.Fork
8484
proc:IO = yio:
8585

8686
yio:Stdin = *Ignore
8787
yio:Stdout = *os.Stdout
8888
yio:Stderr = *os.Stderr
8989

90-
yexit *Fork
90+
yexit *e.Fork
9191
proc:Exit = yexit:
9292

9393
exit *os.Exit

cmd.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h1>Command-line and runtime</h1>
4848
<p>The following command, for instance, will generate the contents of this handbook and place it in the
4949
current working directory where it is invoked:
5050
<pre>
51-
escher -src github.com/gocircuit/escher/src *handbook.main
51+
escher -src "$GOPATH/src/github.com/gocircuit/escher/src/" "*handbook.main"
5252
</pre>
5353
<p>The <code>-src</code> can be omitted in favor of setting the <code>ESCHER</code> environment variable.
5454

debug.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ <h2>Panic traces</h2>
4040
{
4141
*Show = "Parent circuit"
4242

43-
m *escher.QuickMaterialize
43+
m *e.QuickMaterialize
4444
m:Residue = *Ignore
45-
m:Index = *escher.Index
45+
m:Index = *e.Index
4646
m:Program = {
47-
*escher.Breakpoint = 1
47+
*e.Breakpoint = 1
4848
}
4949
}
5050
</pre>
@@ -56,36 +56,36 @@ <h2>Panic traces</h2>
5656

5757
<pre>
5858
BASIS(:)
59-
DIRECTIVE(:) *escher.Breakpoint/*escher.Breakpoint
59+
DIRECTIVE(:) *e.Breakpoint/*e.Breakpoint
6060
CIRCUIT() {
61-
0 *escher.Breakpoint
61+
0 *e.Breakpoint
6262
1 1
6363
0: = 1:
6464
}
6565
MATERIALIZE() {
66-
0 *escher.Breakpoint
66+
0 *e.Breakpoint
6767
1 1
6868
0: = 1:
6969
}
7070
BASIS(:Residue :View)
71-
DIRECTIVE(:Residue :View) *escher.Materialize/*escher.Materialize
71+
DIRECTIVE(:Residue :View) *e.Materialize/*e.Materialize
7272
CIRCUIT(:Index :Program :Residue) {
73-
x *escher.Materialize
74-
y *Fork
73+
x *e.Materialize
74+
y *e.Fork
7575
:Residue = x:Residue
7676
:Index = y:Index
7777
:Program = y:Program
7878
x:View = y:
7979
}
80-
DIRECTIVE(:Index :Program :Residue) *escher.QuickMaterialize/*escher.QuickMaterialize
80+
DIRECTIVE(:Index :Program :Residue) *e.QuickMaterialize/*e.QuickMaterialize
8181
CIRCUIT() {
82-
m *escher.QuickMaterialize
82+
m *e.QuickMaterialize
8383
0 *Show
8484
1 "Parent circuit"
8585
2 *Ignore
86-
3 *escher.Index
86+
3 *e.Index
8787
4 {
88-
0 *escher.Breakpoint
88+
0 *e.Breakpoint
8989
1 1
9090
0: = 1:
9191
}

install.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h1>Bulding and installing Escher</h1>
2424
<p>To check that installation succeeded, run
2525

2626
<pre>
27-
% ESCHER=github.com/gocircuit/escher/src escher test.All
27+
% ESCHER=github.com/gocircuit/escher/src escher "*test.All"
2828
+ Test basic.TestFork (ok)
2929
+ Test basic.TestFunc (ok)
3030
+ Test text.TestForm (ok)

program.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ <h3>Materializing from Go</h3>
261261
<h3>Materializing from Escher</h3>
262262

263263
<p>One can recursively materialize circuits programs from within other
264-
circuit programs. This is accomplished using the built-in reflex <code>escher.Materialize</code>
264+
circuit programs. This is accomplished using the built-in reflex <code>e.Materialize</code>
265265
which is described in the <a href="basis-escher.html">materialization faculty section</a>.
266266

267267
<h3>Materializing from POSIX</h3>

syntax.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,26 +96,27 @@ <h2 id="runtime">Go interface</h2>
9696
<p>Using the Escher parser is very simple, in three steps:
9797

9898
<ul>
99-
<li>Import the parsing package <code>"github.com/gocircuit/escher/see"</code></li>
99+
<li>Import the parsing packages <code>"github.com/gocircuit/escher/a"</code> and <code>"github.com/gocircuit/escher/see"</code></li>
100100
<li>Create a parsing object for your source string</li>
101101
<li>Repeatedly parse one circuit definition at a time</li>
102102
</ul>
103103

104-
<p>The following example illustrates this:
104+
<p>The following Go example illustrates this:
105105

106106
<pre class="go">
107107
package main
108108

109109
import (
110110
"fmt"
111+
"github.com/gocircuit/escher/a"
111112
"github.com/gocircuit/escher/see"
112113
)
113114

114115
func main() {
115-
src = "alpha { a 123; b 3.14; a: = b:}\n beta { 1, 2, 3, \"abc\" }"
116-
p := see.NewSrcString(src) // create a parsing object
116+
src := "alpha { a 123; b 3.14; a: = b:}\n beta { 1, 2, 3, \"abc\" }"
117+
p := a.NewSrcString(src) // create a parsing object
117118
for {
118-
n, v := see.See(p) // parse one circuit at a time
119+
n, v := see.SeePeer(p) // parse one circuit at a time
119120
if v == nil {
120121
break
121122
}

0 commit comments

Comments
 (0)