-
Notifications
You must be signed in to change notification settings - Fork 0
/
languageexamples.html
55 lines (55 loc) · 2.34 KB
/
languageexamples.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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>RIPAL: Responsive and Intuitive Parsing for the Analysis of Language</title>
<link href="styles/styles.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
</head>
<body>
<h1>RIPAL: Responsive and Intuitive Parsing for the Analysis of Language</h1>
<h2>Pages</h2>
<nav aria-label="Pages">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="theory.html">Theory</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
<h2>Language examples</h2>
<div class="section">
<div class="subsection example">
<p><em>Example</em></p>
<p>Σ = {big, walrus}</p>
<p>L = {big walrus}</p>
<p>This language contains only a single string: "big walrus".
<p>This is a an example of a finite language.</p>
</div>
<div class="subsection example">
<p><em>Example</em></p>
<p>Σ = {a, b}</p>
<p>L = {a, aa, ab, aaa, aab, aba, ...}</p>
<p>This language contains all non-empty strings over Σ that start with a.</p>
<p>This is an example of a regular language.</p>
</div>
<div class="subsection example">
<p><em>Example</em></p>
<p>Σ = {0, 1}</p>
<p>L = {0<sup>n</sup>1<sup>n</sup> | n >= 1}</p>
<p>This language contains some positive number of 0s followed by the same number of 1s.</p>
<p>This is an example of a context-free language.</p>
</div>
<div class="subsection example">
<p><em>Example</em></p>
<p>Σ = {0, 1, 2}</p>
<p>L = {0<sup>n</sup>1<sup>n</sup>2<sup>n</sup> | n >= 1}</p>
<p>This language contains some positive number of 0s followed by the same number of 1s and then 2s.</p>
<p>This is an example of a context-sensitive language.</p>
</div>
<p><em>Note</em></p>
<p>The language classifications of finite, regular, context-free and context-sensitive will be explaned on subsequent pages.</p>
</div>
<hr/>
<p>GitHub Repository: <a href="https://github.com/bprollinson/ripal">https://github.com/bprollinson/ripal</a></p>
<p>Copyright © 2017 Brendan Rollinson-Lorimer</p>
</body>
</html>