Skip to content

Commit ee3eb4f

Browse files
Ericson2314simonmarsimonmarTikhonJelvis
authored
Add happy's website (#226)
* initial import darcs-hash:1cf09fa53d9f9c581d2a0276c8d013aafe801133 * 1.16 updates darcs-hash:dccdb4bc9f55a10a4fde271ae562edcd7ee90869 * fix release date darcs-hash:fb5bb7683445260993d2ff9615d5845438a4fb7d * use PDF for 1.16, not PS darcs-hash:b5ce21e0ce404baf29c8d2a97b068ba301f96897 * fix RPM links darcs-hash:d5fff0ef741159c85f94d04d535ac95f7e444fa4 * fix link to Windows bin darcs-hash:c692f1472b98fb28104953168b1f4025402805af * 1.17 updates darcs-hash:1de11294204d00b9649c63c89cf869070e6bee94 * fix win32 zip link darcs-hash:be536f93f84a73fb5f6870559fb9c7b450440648 * Fix windows distribution link darcs-hash:3e3107d0d4351cfcdc8020726e49819449176b9b * update to 1.18 darcs-hash:ed7010e090d9b29422a0821bb3f28b04e1c5b315 * update for 1.18.5 Ignore-this: 5b8d6b12a13405f6f643fd4ae3757588 darcs-hash:f9d00931b54f839bb26cbdc3d5290b1da3d4967a * Add uncommitted files from the Happy website Ignore-this: fde1d132b1cd62fc3b5434fc9673e5d52d0566a4a442c11a2e9c5e460bb203d8b3552a2fa0324e21 darcs-hash:03ea48f880aa7ad49c902df38819a3d4c4bcd6f4 * Add files that didn't get ported over for some reason * Happy is no longer handled specially * Add happy to the builder Thanks @tomjaguarpaw * Get Happy.gif from main happy repo * Remove `site/happy/doc_OLD` Keeping in history is enough * Remove `site/happy/doc/html-OLD` Keeping in history is enough * Remove site/happy/.{current-hash,darcs-boring} Don't need these metadata files. * happy: Some cleaning up of the web page * Removed unversioned docs We have converted to reST and readthedocs.io. * Remove extra copy of change log Repo's is enough * Link current readthedocs.io documentation * Happy: Update repo references Co-authored-by: simonmar <[email protected]> Co-authored-by: Simon Marlow <[email protected]> Co-authored-by: Tikhon Jelvis <[email protected]>
1 parent 2aef82a commit ee3eb4f

File tree

151 files changed

+14268
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+14268
-6
lines changed

README.md

Lines changed: 0 additions & 6 deletions

builder/site.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ main = mkContext >>= \ctx -> hakyllWith configuration $ do
3535
match "img/*" $ do
3636
route idRoute
3737
compile copyFileCompiler
38+
39+
match "happy/**" $ do
40+
route idRoute
41+
compile copyFileCompiler
3842

3943
match "alex/**" $ do
4044
route idRoute

site/happy/dist/1.10/happy-1-10.exe

1.31 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.
285 KB
Binary file not shown.
286 KB
Binary file not shown.

site/happy/dist/1.11/happy-1-11.exe

1.3 MB
Binary file not shown.
299 KB
Binary file not shown.
301 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
298 KB
Binary file not shown.

site/happy/dist/1.13/happy-1-13.msi

666 KB
Binary file not shown.
303 KB
Binary file not shown.
Binary file not shown.
322 KB
Binary file not shown.
346 KB
Binary file not shown.
463 KB
Binary file not shown.
312 KB
Binary file not shown.
268 KB
Binary file not shown.
498 KB
Binary file not shown.
Binary file not shown.
400 KB
Binary file not shown.
Binary file not shown.
221 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
223 KB
Binary file not shown.

site/happy/dist/1.17/happy-1.17.zip

550 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
473 KB
Binary file not shown.
Binary file not shown.
191 KB
Binary file not shown.

site/happy/dist/1.6/happy-www.tra.gz

123 KB
Binary file not shown.

site/happy/dist/1.7/happy-1-7.exe

1.59 MB
Binary file not shown.

site/happy/dist/1.8/happy-1-8.exe

1.54 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.
306 KB
Binary file not shown.

site/happy/dist/1.9/happy-1-9.exe

1.56 MB
Binary file not shown.
Binary file not shown.
286 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

site/happy/dist/happy-1.5-src.tar.gz

473 KB
Binary file not shown.

site/happy/dist/happy-Win32-snap.zip

228 KB
Binary file not shown.

site/happy/doc-1.11/html/caution.gif

1.01 KB

site/happy/doc-1.11/html/docbook.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.BOOK .TITLE { text-align: center }
2+
.BOOK .SUBTITLE { text-align: center }
3+
.BOOK .CORPAUTHOR { text-align: center }
4+
.BOOK .AUTHOR { text-align: center }
5+
.BOOK .AFFILIATION { text-align: center }
6+
.BOOK .EDITEDBY { text-align: center }
7+
.BOOK .EDITOR { text-align: center }
8+
.BOOK .GRAPHIC { text-align: center }
9+
10+
.ARTICLE .TITLE { text-align: center }
11+
.ARTICLE .SUBTITLE { text-align: center }
12+
.ARTICLE .CORPAUTHOR { text-align: center }
13+
.ARTICLE .AUTHOR { text-align: center }
14+
.ARTICLE .AFFILIATION { text-align: center }
15+
.ARTICLE .EDITEDBY { text-align: center }
16+
.ARTICLE .EDITOR { text-align: center }
17+
.ARTICLE .GRAPHIC { text-align: center }
18+
.ARTICLE .ABSTRACT { margin-left: 0.5in;
19+
margin-right: 0.5in;
20+
font-style: italic }
Lines changed: 312 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,312 @@
1+
<HTML
2+
><HEAD
3+
><TITLE
4+
>Introduction</TITLE
5+
><META
6+
NAME="GENERATOR"
7+
CONTENT="Modular DocBook HTML Stylesheet Version 1.54"><LINK
8+
REL="HOME"
9+
TITLE="Happy User Guide"
10+
HREF="happy.html"><LINK
11+
REL="PREVIOUS"
12+
TITLE="Happy User Guide"
13+
HREF="happy.html"><LINK
14+
REL="NEXT"
15+
TITLE="Reporting Bugs"
16+
HREF="sec-reporting-bugs.html"></HEAD
17+
><BODY
18+
CLASS="CHAPTER"
19+
><DIV
20+
CLASS="NAVHEADER"
21+
><TABLE
22+
WIDTH="100%"
23+
BORDER="0"
24+
CELLPADDING="0"
25+
CELLSPACING="0"
26+
><TR
27+
><TH
28+
COLSPAN="3"
29+
ALIGN="center"
30+
>Happy User Guide</TH
31+
></TR
32+
><TR
33+
><TD
34+
WIDTH="10%"
35+
ALIGN="left"
36+
VALIGN="bottom"
37+
><A
38+
HREF="happy.html"
39+
>Prev</A
40+
></TD
41+
><TD
42+
WIDTH="80%"
43+
ALIGN="center"
44+
VALIGN="bottom"
45+
></TD
46+
><TD
47+
WIDTH="10%"
48+
ALIGN="right"
49+
VALIGN="bottom"
50+
><A
51+
HREF="sec-reporting-bugs.html"
52+
>Next</A
53+
></TD
54+
></TR
55+
></TABLE
56+
><HR
57+
ALIGN="LEFT"
58+
WIDTH="100%"></DIV
59+
><DIV
60+
CLASS="CHAPTER"
61+
><H1
62+
><A
63+
NAME="HAPPY-INTRODUCTION"
64+
>Chapter 1. Introduction</A
65+
></H1
66+
><DIV
67+
CLASS="TOC"
68+
><DL
69+
><DT
70+
><B
71+
>Table of Contents</B
72+
></DT
73+
><DT
74+
>1.1. <A
75+
HREF="happy-introduction.html#SEC-COMPATIBILITY"
76+
>Compatibility</A
77+
></DT
78+
><DT
79+
>1.2. <A
80+
HREF="sec-reporting-bugs.html"
81+
>Reporting Bugs</A
82+
></DT
83+
><DT
84+
>1.3. <A
85+
HREF="sec-license.html"
86+
>License</A
87+
></DT
88+
><DT
89+
>1.4. <A
90+
HREF="sec-obtaining.html"
91+
>Obtaining <SPAN
92+
CLASS="APPLICATION"
93+
>Happy</SPAN
94+
></A
95+
></DT
96+
></DL
97+
></DIV
98+
><P
99+
> <SPAN
100+
CLASS="APPLICATION"
101+
>Happy</SPAN
102+
> is a parser generator
103+
system for Haskell, similar to the tool
104+
<SPAN
105+
CLASS="APPLICATION"
106+
>yacc</SPAN
107+
> for C. Like
108+
<SPAN
109+
CLASS="APPLICATION"
110+
>yacc</SPAN
111+
>, it takes a file containing an
112+
annotated BNF specification of a grammar and produces a Haskell
113+
module containing a parser for the grammar. </P
114+
><P
115+
> <SPAN
116+
CLASS="APPLICATION"
117+
>Happy</SPAN
118+
> is flexible; unlike
119+
<SPAN
120+
CLASS="APPLICATION"
121+
>yacc</SPAN
122+
>, you can have several
123+
<SPAN
124+
CLASS="APPLICATION"
125+
>Happy</SPAN
126+
> parsers in the same program, and
127+
each parser may have multiple entry points.
128+
<SPAN
129+
CLASS="APPLICATION"
130+
>Happy</SPAN
131+
> can work in conjunction with a
132+
lexical analyser supplied by the user (either hand-written or
133+
generated by another program), or it can parse a stream of
134+
characters directly (but this isn't practical in most cases). In
135+
a future version we hope to include a lexical analyser generator
136+
with <SPAN
137+
CLASS="APPLICATION"
138+
>Happy</SPAN
139+
> as a single package. </P
140+
><P
141+
> Parsers generated by <SPAN
142+
CLASS="APPLICATION"
143+
>Happy</SPAN
144+
> are
145+
fast; generally faster than an equivalent parser written using
146+
parsing combinators or similar tools. Furthermore, any future
147+
improvements made to <SPAN
148+
CLASS="APPLICATION"
149+
>Happy</SPAN
150+
> will benefit
151+
an existing grammar, without need for a rewrite. </P
152+
><P
153+
> <SPAN
154+
CLASS="APPLICATION"
155+
>Happy</SPAN
156+
> is sufficiently powerful
157+
to parse Haskell itself - there's a freely available Haskell
158+
parser written using <SPAN
159+
CLASS="APPLICATION"
160+
>Happy</SPAN
161+
> which can be
162+
obtained from <A
163+
HREF="http://www.pms.informatik.uni-muenchen.de/mitarbeiter/panne/haskell_libs/hsparser.html"
164+
TARGET="_top"
165+
> The <TT
166+
CLASS="LITERAL"
167+
>hsparser</TT
168+
> Page</A
169+
>, and included with versions of
170+
GHC from 5.00 onwards.</P
171+
><P
172+
> <SPAN
173+
CLASS="APPLICATION"
174+
>Happy</SPAN
175+
> can currently generate
176+
four types of parser from a given grammar, the intention being
177+
that we can experiment with different kinds of functional code to
178+
see which is the best, and compiler writers can use the different
179+
types of parser to tune their compilers. The types of parser
180+
supported are: </P
181+
><P
182+
></P
183+
><OL
184+
TYPE="1"
185+
><LI
186+
><A
187+
NAME="ITEM-DEFAULT-BACKEND"
188+
></A
189+
><P
190+
>`standard' Haskell 98
191+
(should work with any compiler that compiles Haskell
192+
98).</P
193+
></LI
194+
><LI
195+
><P
196+
>standard Haskell using arrays
197+
198+
199+
(this is not the default because we have
200+
found this generates slower parsers than <A
201+
HREF="happy-introduction.html#ITEM-DEFAULT-BACKEND"
202+
>1</A
203+
>).</P
204+
></LI
205+
><LI
206+
><P
207+
>Haskell with GHC (Glasgow Haskell) extensions.
208+
This is a slightly faster option than <A
209+
HREF="happy-introduction.html#ITEM-DEFAULT-BACKEND"
210+
>1</A
211+
> for Glasgow Haskell
212+
users.</P
213+
></LI
214+
><LI
215+
><P
216+
>GHC Haskell with string-encoded arrays. This is the
217+
fastest/smallest option for GHC users. If you're using GHC,
218+
the optimum flag settings are <TT
219+
CLASS="LITERAL"
220+
>-agc</TT
221+
> (see
222+
<A
223+
HREF="sec-invoking.html"
224+
>Chapter 3</A
225+
>).</P
226+
></LI
227+
></OL
228+
><P
229+
>Happy can also generate parsers which will dump debugging
230+
information at run time, showing state transitions and the input
231+
tokens to the parser.</P
232+
><DIV
233+
CLASS="SECT1"
234+
><H1
235+
CLASS="SECT1"
236+
><A
237+
NAME="SEC-COMPATIBILITY"
238+
>1.1. Compatibility</A
239+
></H1
240+
><P
241+
> <SPAN
242+
CLASS="APPLICATION"
243+
>Happy</SPAN
244+
> is written in Glasgow Haskell. This
245+
means that (for the time being), you need GHC to compile it.
246+
Any version of GHC &#62;= 3.02 should work.</P
247+
><P
248+
> Remember: parsers produced using
249+
<SPAN
250+
CLASS="APPLICATION"
251+
>Happy</SPAN
252+
> should compile without
253+
difficulty under any Haskell 98 complier or interpreter.</P
254+
></DIV
255+
></DIV
256+
><DIV
257+
CLASS="NAVFOOTER"
258+
><HR
259+
ALIGN="LEFT"
260+
WIDTH="100%"><TABLE
261+
WIDTH="100%"
262+
BORDER="0"
263+
CELLPADDING="0"
264+
CELLSPACING="0"
265+
><TR
266+
><TD
267+
WIDTH="33%"
268+
ALIGN="left"
269+
VALIGN="top"
270+
><A
271+
HREF="happy.html"
272+
>Prev</A
273+
></TD
274+
><TD
275+
WIDTH="34%"
276+
ALIGN="center"
277+
VALIGN="top"
278+
><A
279+
HREF="happy.html"
280+
>Home</A
281+
></TD
282+
><TD
283+
WIDTH="33%"
284+
ALIGN="right"
285+
VALIGN="top"
286+
><A
287+
HREF="sec-reporting-bugs.html"
288+
>Next</A
289+
></TD
290+
></TR
291+
><TR
292+
><TD
293+
WIDTH="33%"
294+
ALIGN="left"
295+
VALIGN="top"
296+
>Happy User Guide</TD
297+
><TD
298+
WIDTH="34%"
299+
ALIGN="center"
300+
VALIGN="top"
301+
>&nbsp;</TD
302+
><TD
303+
WIDTH="33%"
304+
ALIGN="right"
305+
VALIGN="top"
306+
>Reporting Bugs</TD
307+
></TR
308+
></TABLE
309+
></DIV
310+
></BODY
311+
></HTML
312+
>

0 commit comments

Comments
 (0)