-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmg.html
69 lines (69 loc) · 2.57 KB
/
mg.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html>
<head>
<title>Minimal glueings</title>
<meta charset="utf-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="thesis.css">
<script type="text/javascript" src="https://code.jquery.com/jquery-2.2.2.min.js"></script>
<!-- <script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> -->
<script src="https://unpkg.com/parsimmon@1.2.0"></script>
<!-- <script src="https://d3js.org/d3.v3.min.js"></script> -->
<script src="https://cdn.jsdelivr.net/lodash/4.17.4/lodash.min.js"></script>
<script src="mg.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12">
<h2> Minimal glueings</h2>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h4>Kappa syntax</h4>
<div class="centre" style="width: 26em; text-align: left;">
<pre>graph = agent(sites),graph | ε
agent is any string of letters or numbers
sites = site!bond,sites | site,sites | ε
site is any string of letters or numbers
bond is any natural number</pre>
</div>
<p class="centre" style="width: 40em">
Example: <code>A(x!1),A(y!1,x)</code> is a graph
with two agents of type <code>A</code>.
The first agent has a site <code>x</code> that is
connected to the second agent's <code>y</code> site.
The second agent has a free <code>x</code> site
while the first agent does not mention its <code>y</code>,
meaning it can be bound or free.
</p>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="g">g</label>
<input class="form-control input-lg" type="text"
name="g" value="A(x!1),A(y!1)"/>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="h">h</label>
<input class="form-control input-lg" type="text"
name="h" value="A(x!1),A(y!1)"/>
</div>
</div>
</div>
<div class="row">
<div class="col-md-2 col-md-offset-5">
<button class="btn btn-default btn-lg" name="go"
onclick="computeMg();">Compute</button>
</div>
</div>
<div class="row" id="results"></div>
<div style="margin: 100px"></div>
</div>
</body>