|
| 1 | +<?xml version="1.0" encoding="ISO-8859-1"?> |
| 2 | +<!DOCTYPE html |
| 3 | + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| 4 | + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 5 | +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 6 | + |
| 7 | +<head> |
| 8 | +<title>Alex</title> |
| 9 | +</head> |
| 10 | + |
| 11 | +<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: |
| 12 | + collapse; font-family: Arial" bordercolor="#111111" width="800" align="center"> |
| 13 | + <tr> |
| 14 | + <td width="100%" style="font-size: 24pt; padding-bottom: 0px" bgcolor="#77aaFF"> |
| 15 | + Alex: A lexical analyser generator for Haskell</td> |
| 16 | + </tr> |
| 17 | + <tr> |
| 18 | + <td width="100%" style="padding-top: 20px"> |
| 19 | + <ul> |
| 20 | + <li><a href="#Overview">Overview</a></li> |
| 21 | + <li><a href="#Documentation">Documentation</a></li> |
| 22 | + <li><a href="#Download">Download</a></li> |
| 23 | + <li><a href="#Development">Development</a></li> |
| 24 | + </ul> |
| 25 | + </td> |
| 26 | + </tr> |
| 27 | + <tr style="border-bottom: 1px dotted"> |
| 28 | + <td width="100%" style="font-size: 18pt; padding-top: 10px"> |
| 29 | + <a name="Overview">Overview</a></td> |
| 30 | + </tr> |
| 31 | + <tr> |
| 32 | + <td width="100%" style="padding-left: 10px; padding-top: 5px"> |
| 33 | + <p>Alex is a tool for generating lexical analysers |
| 34 | + in Haskell, given a description of the tokens to be recognised |
| 35 | + in the form of regular expressions. It is similar to the tool |
| 36 | + <quote>lex</quote> or <quote>flex</quote> for C/C++.</p> |
| 37 | + </td> |
| 38 | + </tr> |
| 39 | + <tr style="border-bottom: 1px dotted"> |
| 40 | + <td width="100%" style="font-size: 18pt; padding-top: 10px"> |
| 41 | + <a name="Documentation">Documentation</a></td> |
| 42 | + </tr> |
| 43 | + <tr> |
| 44 | + <td width="100%" style="padding-left: 10px; padding-top: 5px"> |
| 45 | + <p>Documentation is hosted on <a href="https://haskell-alex.readthedocs.io">Read the Docs</a>. |
| 46 | + <ul> |
| 47 | + <li><a href="https://haskell-alex.readthedocs.io">Online (HTML)</a></li> |
| 48 | + <li><a href="https://haskell-alex.readthedocs.io/_/downloads/en/latest/pdf/">PDF</a></li> |
| 49 | + <li><a href="https://haskell-alex.readthedocs.io/_/downloads/en/latest/htmlzip/">Downloadable HTML</a></li> |
| 50 | + </ul> |
| 51 | + </td> |
| 52 | + </tr> |
| 53 | + <tr style="border-bottom: 1px dotted"> |
| 54 | + <td width="100%" style="font-size: 18pt; padding-top: 10px"> |
| 55 | + <a name="Download">Download</a></td> |
| 56 | + </tr> |
| 57 | + <tr> |
| 58 | + <td width="100%" style="padding-left: 10px; padding-top: 5px"> |
| 59 | + |
| 60 | + <p>From <a href="https://hackage.haskell.org/package/alex">Hackage</a> via |
| 61 | + <a href="https://www.haskell.org/cabal/"><code>cabal-install</code></a>: |
| 62 | + <pre> |
| 63 | + cabal install alex |
| 64 | + </pre> |
| 65 | + </p> |
| 66 | + |
| 67 | + <p>From <a href="https://www.stackage.org/package/alex">Stackage</a> via |
| 68 | + <a href="https://haskellstack.org"><code>stack</code></a>, e.g.: |
| 69 | + <pre> |
| 70 | + stack install --resolver nightly alex |
| 71 | + </pre> |
| 72 | + </p> |
| 73 | + |
| 74 | + <p>Alex might also be pre-packaged for your OS (unconfirmed as of 2022-04-06):</p> |
| 75 | + |
| 76 | + <UL> |
| 77 | + <LI>Ubuntu users: packages should be available from the universe repository.</LI> |
| 78 | + <LI>Debian GNU/Linux users: packages are available <a href="http://packages.debian.org/alex">here</a>.</LI> |
| 79 | + <LI>RPMs for other versions of Linux can be built directly from the source, using <tt>rpmbuild -ta</tt>.</LI> |
| 80 | + <LI>FreeBSD/x86 users: Alex is in the ports tree, so either <tt>pkg_add -r |
| 81 | + hs-alex</tt>, or install it from the ports tree in |
| 82 | + <tt>/usr/ports/devel/hs-alex</tt>.</LI> |
| 83 | + <li>OpenBSD users: Alex is in the -current ports tree, you can |
| 84 | + install it from <tt>/usr/ports/devel/alex</tt>.</li> |
| 85 | + </UL> |
| 86 | + |
| 87 | + </td> |
| 88 | + </tr> |
| 89 | + <tr style="border-bottom: 1px dotted"> |
| 90 | + <td width="100%" style="font-size: 18pt; padding-top: 10px"> |
| 91 | + <a name="Development">Development</a></td> |
| 92 | + </tr> |
| 93 | + <tr> |
| 94 | + <td width="100%" style="padding-left: 10px; padding-top: 5px"> |
| 95 | + <p>Alex is licensed under a <a |
| 96 | + href="http://www.haskell.org/alex/doc/html/license.html">BSD-style |
| 97 | + license</a>. |
| 98 | + The current sources are on <a href="https://github.com/haskell/alex">github</a>, |
| 99 | + get the latest version with: |
| 100 | + <pre> git clone https://github.com/haskell/alex</pre> |
| 101 | + </p> |
| 102 | + |
| 103 | + <p>Contribute by opening <a href="https://github.com/haskell/alex/issues">issues</a> |
| 104 | + which can be followed up by <a href="https://github.com/haskell/alex/pulls">pull requests</a>.</p> |
| 105 | + </td> |
| 106 | + </tr> |
| 107 | +</table> |
| 108 | +<hr> |
| 109 | +<p style="font-family: Arial">Source of this page: |
| 110 | +<a href="https://github.com/haskell/alex/blob/master/www/index.html"><code>index.html</code></a>, |
| 111 | +deployed 2022-04-06.</p> |
| 112 | + |
| 113 | +</body> |
| 114 | + |
| 115 | +</html> |
0 commit comments