This file is indexed.

/usr/share/doc/libghc-yi-language-doc/html/Yi-Lexer-JavaScript.html is in libghc-yi-language-doc 0.2.1-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Yi.Lexer.JavaScript</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Yi-Lexer-JavaScript.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Yi-Lexer-JavaScript.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">yi-language-0.2.1: Collection of language-related Yi libraries.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Yi.Lexer.JavaScript</p></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:initState">initState</a> :: <a href="Yi-Lexer-JavaScript.html#t:HlState">HlState</a></li><li class="src short"><a href="#v:alexScanToken">alexScanToken</a> :: (<a href="Yi-Lexer-Alex.html#t:AlexState">AlexState</a> <a href="Yi-Lexer-JavaScript.html#t:HlState">HlState</a>, <a href="Yi-Lexer-Alex.html#t:AlexInput">AlexInput</a>) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Yi-Lexer-Alex.html#t:Tok">Tok</a> <a href="Yi-Lexer-JavaScript.html#t:Token">Token</a>, (<a href="Yi-Lexer-Alex.html#t:AlexState">AlexState</a> <a href="Yi-Lexer-JavaScript.html#t:HlState">HlState</a>, <a href="Yi-Lexer-Alex.html#t:AlexInput">AlexInput</a>))</li><li class="src short"><a href="#v:tokenToStyle">tokenToStyle</a> :: <a href="Yi-Lexer-JavaScript.html#t:Token">Token</a> -&gt; <a href="Yi-Style.html#t:UIStyle">UIStyle</a> -&gt; <a href="Yi-Style.html#t:Style">Style</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:TT">TT</a> = <a href="Yi-Lexer-Alex.html#t:Tok">Tok</a> <a href="Yi-Lexer-JavaScript.html#t:Token">Token</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:Token">Token</a><ul class="subs"><li>= <a href="#v:Unknown">Unknown</a></li><li>| <a href="#v:Res">Res</a> !<a href="Yi-Lexer-JavaScript.html#t:Reserved">Reserved</a></li><li>| <a href="#v:Str">Str</a> !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></li><li>| <a href="#v:Rex">Rex</a> !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></li><li>| <a href="#v:Op">Op</a> !<a href="Yi-Lexer-JavaScript.html#t:Operator">Operator</a></li><li>| <a href="#v:Special">Special</a> !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Char.html#t:Char">Char</a></li><li>| <a href="#v:Number">Number</a> !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></li><li>| <a href="#v:ValidName">ValidName</a> !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></li><li>| <a href="#v:Comment">Comment</a> !CommentType</li><li>| <a href="#v:Const">Const</a> !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:Reserved">Reserved</a><ul class="subs"><li>= <a href="#v:Break-39-">Break'</a></li><li>| <a href="#v:Case-39-">Case'</a></li><li>| <a href="#v:Catch-39-">Catch'</a></li><li>| <a href="#v:Continue-39-">Continue'</a></li><li>| <a href="#v:Default-39-">Default'</a></li><li>| <a href="#v:Delete-39-">Delete'</a></li><li>| <a href="#v:Do-39-">Do'</a></li><li>| <a href="#v:Else-39-">Else'</a></li><li>| <a href="#v:Finally-39-">Finally'</a></li><li>| <a href="#v:For-39-">For'</a></li><li>| <a href="#v:Function-39-">Function'</a></li><li>| <a href="#v:If-39-">If'</a></li><li>| <a href="#v:In-39-">In'</a></li><li>| <a href="#v:InstanceOf-39-">InstanceOf'</a></li><li>| <a href="#v:New-39-">New'</a></li><li>| <a href="#v:Return-39-">Return'</a></li><li>| <a href="#v:Switch-39-">Switch'</a></li><li>| <a href="#v:This-39-">This'</a></li><li>| <a href="#v:Throw-39-">Throw'</a></li><li>| <a href="#v:Try-39-">Try'</a></li><li>| <a href="#v:TypeOf-39-">TypeOf'</a></li><li>| <a href="#v:Var-39-">Var'</a></li><li>| <a href="#v:Void-39-">Void'</a></li><li>| <a href="#v:While-39-">While'</a></li><li>| <a href="#v:With-39-">With'</a></li><li>| <a href="#v:True-39-">True'</a></li><li>| <a href="#v:False-39-">False'</a></li><li>| <a href="#v:Null-39-">Null'</a></li><li>| <a href="#v:Undefined-39-">Undefined'</a></li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:Operator">Operator</a><ul class="subs"><li>= <a href="#v:Add-39-">Add'</a></li><li>| <a href="#v:Subtract-39-">Subtract'</a></li><li>| <a href="#v:Multiply-39-">Multiply'</a></li><li>| <a href="#v:Divide-39-">Divide'</a></li><li>| <a href="#v:Modulo-39-">Modulo'</a></li><li>| <a href="#v:Increment-39-">Increment'</a></li><li>| <a href="#v:Decrement-39-">Decrement'</a></li><li>| <a href="#v:Assign-39-">Assign'</a></li><li>| <a href="#v:AddAssign-39-">AddAssign'</a></li><li>| <a href="#v:SubtractAssign-39-">SubtractAssign'</a></li><li>| <a href="#v:MultiplyAssign-39-">MultiplyAssign'</a></li><li>| <a href="#v:DivideAssign-39-">DivideAssign'</a></li><li>| <a href="#v:ModuloAssign-39-">ModuloAssign'</a></li><li>| <a href="#v:Equals-39-">Equals'</a></li><li>| <a href="#v:NotEquals-39-">NotEquals'</a></li><li>| <a href="#v:GT-39-">GT'</a></li><li>| <a href="#v:GTE-39-">GTE'</a></li><li>| <a href="#v:LT-39-">LT'</a></li><li>| <a href="#v:LTE-39-">LTE'</a></li><li>| <a href="#v:EqualsType-39-">EqualsType'</a></li><li>| <a href="#v:NotEqualsType-39-">NotEqualsType'</a></li><li>| <a href="#v:And-39-">And'</a></li><li>| <a href="#v:Or-39-">Or'</a></li><li>| <a href="#v:Not-39-">Not'</a></li><li>| <a href="#v:BitAnd-39-">BitAnd'</a></li><li>| <a href="#v:BitOr-39-">BitOr'</a></li><li>| <a href="#v:BitXor-39-">BitXor'</a></li><li>| <a href="#v:LeftShift-39-">LeftShift'</a></li><li>| <a href="#v:RightShift-39-">RightShift'</a></li><li>| <a href="#v:RightShiftZ-39-">RightShiftZ'</a></li><li>| <a href="#v:BitNot-39-">BitNot'</a></li><li>| <a href="#v:Qualify-39-">Qualify'</a></li></ul></li><li class="src short"><span class="keyword">type</span> <a href="#t:HlState">HlState</a> = <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:prefixOperators">prefixOperators</a> :: [<a href="Yi-Lexer-JavaScript.html#t:Operator">Operator</a>]</li><li class="src short"><a href="#v:infixOperators">infixOperators</a> :: [<a href="Yi-Lexer-JavaScript.html#t:Operator">Operator</a>]</li><li class="src short"><a href="#v:postfixOperators">postfixOperators</a> :: [<a href="Yi-Lexer-JavaScript.html#t:Operator">Operator</a>]</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:initState" class="def">initState</a> :: <a href="Yi-Lexer-JavaScript.html#t:HlState">HlState</a> <a href="src/Yi-Lexer-JavaScript.html#initState" class="link">Source</a> <a href="#v:initState" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:alexScanToken" class="def">alexScanToken</a> :: (<a href="Yi-Lexer-Alex.html#t:AlexState">AlexState</a> <a href="Yi-Lexer-JavaScript.html#t:HlState">HlState</a>, <a href="Yi-Lexer-Alex.html#t:AlexInput">AlexInput</a>) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Yi-Lexer-Alex.html#t:Tok">Tok</a> <a href="Yi-Lexer-JavaScript.html#t:Token">Token</a>, (<a href="Yi-Lexer-Alex.html#t:AlexState">AlexState</a> <a href="Yi-Lexer-JavaScript.html#t:HlState">HlState</a>, <a href="Yi-Lexer-Alex.html#t:AlexInput">AlexInput</a>)) <a href="src/Yi-Lexer-JavaScript.html#alexScanToken" class="link">Source</a> <a href="#v:alexScanToken" class="selflink">#</a></p><div class="doc"><p>Scan one token. Return (maybe) a token and a new state.</p></div></div><div class="top"><p class="src"><a id="v:tokenToStyle" class="def">tokenToStyle</a> :: <a href="Yi-Lexer-JavaScript.html#t:Token">Token</a> -&gt; <a href="Yi-Style.html#t:UIStyle">UIStyle</a> -&gt; <a href="Yi-Style.html#t:Style">Style</a> <a href="src/Yi-Lexer-JavaScript.html#tokenToStyle" class="link">Source</a> <a href="#v:tokenToStyle" class="selflink">#</a></p><div class="doc"><p>Takes a <code><a href="Yi-Lexer-JavaScript.html#t:Token">Token</a></code> and returns a style to be used for that type of token.</p><p>TODO: The <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#v:elem">elem</a></code> check is potentially unnecessarily slow.  We could split
   the Const constructor into two different ones, one for builtins and one for
   others.</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:TT" class="def">TT</a> = <a href="Yi-Lexer-Alex.html#t:Tok">Tok</a> <a href="Yi-Lexer-JavaScript.html#t:Token">Token</a> <a href="src/Yi-Lexer-JavaScript.html#TT" class="link">Source</a> <a href="#t:TT" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Token" class="def">Token</a> <a href="src/Yi-Lexer-JavaScript.html#Token" class="link">Source</a> <a href="#t:Token" class="selflink">#</a></p><div class="doc"><p>The different tokens.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Unknown" class="def">Unknown</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Res" class="def">Res</a> !<a href="Yi-Lexer-JavaScript.html#t:Reserved">Reserved</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Str" class="def">Str</a> !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Rex" class="def">Rex</a> !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Op" class="def">Op</a> !<a href="Yi-Lexer-JavaScript.html#t:Operator">Operator</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Special" class="def">Special</a> !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Char.html#t:Char">Char</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Number" class="def">Number</a> !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:ValidName" class="def">ValidName</a> !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Comment" class="def">Comment</a> !CommentType</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Const" class="def">Const</a> !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Token" class="caption collapser" onclick="toggleSection('i:Token')">Instances</p><div id="section.i:Token" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Token:Eq:1" class="instance expander" onclick="toggleSection('i:id:Token:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Yi-Lexer-JavaScript.html#t:Token">Token</a></span> <a href="src/Yi-Lexer-JavaScript.html#line-181" class="link">Source</a> <a href="#t:Token" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Token:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Yi-Lexer-JavaScript.html#t:Token">Token</a> -&gt; <a href="Yi-Lexer-JavaScript.html#t:Token">Token</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Yi-Lexer-JavaScript.html#t:Token">Token</a> -&gt; <a href="Yi-Lexer-JavaScript.html#t:Token">Token</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Token:Show:2" class="instance expander" onclick="toggleSection('i:id:Token:Show:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:Show">Show</a> <a href="Yi-Lexer-JavaScript.html#t:Token">Token</a></span> <a href="src/Yi-Lexer-JavaScript.html#line-181" class="link">Source</a> <a href="#t:Token" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Token:Show:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Yi-Lexer-JavaScript.html#t:Token">Token</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Yi-Lexer-JavaScript.html#t:Token">Token</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Yi-Lexer-JavaScript.html#t:Token">Token</a>] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Reserved" class="def">Reserved</a> <a href="src/Yi-Lexer-JavaScript.html#Reserved" class="link">Source</a> <a href="#t:Reserved" class="selflink">#</a></p><div class="doc"><p>The constructors for <code>Reserved</code> have an apostrophe as a suffix because
   <code>Default</code> is already used.  Also note that <code>Undefined'</code> is not intended as
   some sort of &quot;backup&quot; reserved word for things we don't care about -- it
   really means the &quot;undefined&quot; built-in in JavaScript.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Break-39-" class="def">Break'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Case-39-" class="def">Case'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Catch-39-" class="def">Catch'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Continue-39-" class="def">Continue'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Default-39-" class="def">Default'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Delete-39-" class="def">Delete'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Do-39-" class="def">Do'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Else-39-" class="def">Else'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Finally-39-" class="def">Finally'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:For-39-" class="def">For'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Function-39-" class="def">Function'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:If-39-" class="def">If'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:In-39-" class="def">In'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:InstanceOf-39-" class="def">InstanceOf'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:New-39-" class="def">New'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Return-39-" class="def">Return'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Switch-39-" class="def">Switch'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:This-39-" class="def">This'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Throw-39-" class="def">Throw'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Try-39-" class="def">Try'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:TypeOf-39-" class="def">TypeOf'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Var-39-" class="def">Var'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Void-39-" class="def">Void'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:While-39-" class="def">While'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:With-39-" class="def">With'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:True-39-" class="def">True'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:False-39-" class="def">False'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Null-39-" class="def">Null'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Undefined-39-" class="def">Undefined'</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Reserved" class="caption collapser" onclick="toggleSection('i:Reserved')">Instances</p><div id="section.i:Reserved" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Reserved:Eq:1" class="instance expander" onclick="toggleSection('i:id:Reserved:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Yi-Lexer-JavaScript.html#t:Reserved">Reserved</a></span> <a href="src/Yi-Lexer-JavaScript.html#line-140" class="link">Source</a> <a href="#t:Reserved" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Reserved:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Yi-Lexer-JavaScript.html#t:Reserved">Reserved</a> -&gt; <a href="Yi-Lexer-JavaScript.html#t:Reserved">Reserved</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Yi-Lexer-JavaScript.html#t:Reserved">Reserved</a> -&gt; <a href="Yi-Lexer-JavaScript.html#t:Reserved">Reserved</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Reserved:Show:2" class="instance expander" onclick="toggleSection('i:id:Reserved:Show:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:Show">Show</a> <a href="Yi-Lexer-JavaScript.html#t:Reserved">Reserved</a></span> <a href="src/Yi-Lexer-JavaScript.html#line-140" class="link">Source</a> <a href="#t:Reserved" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Reserved:Show:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Yi-Lexer-JavaScript.html#t:Reserved">Reserved</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Yi-Lexer-JavaScript.html#t:Reserved">Reserved</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Yi-Lexer-JavaScript.html#t:Reserved">Reserved</a>] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Operator" class="def">Operator</a> <a href="src/Yi-Lexer-JavaScript.html#Operator" class="link">Source</a> <a href="#t:Operator" class="selflink">#</a></p><div class="doc"><p>The constructors for <code>Operator</code> have an apostrophe as a suffix because
   e.g. <code>LT</code> is already used by <code>Prelude</code>.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Add-39-" class="def">Add'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Subtract-39-" class="def">Subtract'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Multiply-39-" class="def">Multiply'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Divide-39-" class="def">Divide'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Modulo-39-" class="def">Modulo'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Increment-39-" class="def">Increment'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Decrement-39-" class="def">Decrement'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Assign-39-" class="def">Assign'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:AddAssign-39-" class="def">AddAssign'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:SubtractAssign-39-" class="def">SubtractAssign'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:MultiplyAssign-39-" class="def">MultiplyAssign'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DivideAssign-39-" class="def">DivideAssign'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:ModuloAssign-39-" class="def">ModuloAssign'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Equals-39-" class="def">Equals'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:NotEquals-39-" class="def">NotEquals'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:GT-39-" class="def">GT'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:GTE-39-" class="def">GTE'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:LT-39-" class="def">LT'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:LTE-39-" class="def">LTE'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:EqualsType-39-" class="def">EqualsType'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:NotEqualsType-39-" class="def">NotEqualsType'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:And-39-" class="def">And'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Or-39-" class="def">Or'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Not-39-" class="def">Not'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:BitAnd-39-" class="def">BitAnd'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:BitOr-39-" class="def">BitOr'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:BitXor-39-" class="def">BitXor'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:LeftShift-39-" class="def">LeftShift'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:RightShift-39-" class="def">RightShift'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:RightShiftZ-39-" class="def">RightShiftZ'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:BitNot-39-" class="def">BitNot'</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:Qualify-39-" class="def">Qualify'</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Operator" class="caption collapser" onclick="toggleSection('i:Operator')">Instances</p><div id="section.i:Operator" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Operator:Eq:1" class="instance expander" onclick="toggleSection('i:id:Operator:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Yi-Lexer-JavaScript.html#t:Operator">Operator</a></span> <a href="src/Yi-Lexer-JavaScript.html#line-150" class="link">Source</a> <a href="#t:Operator" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Operator:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Yi-Lexer-JavaScript.html#t:Operator">Operator</a> -&gt; <a href="Yi-Lexer-JavaScript.html#t:Operator">Operator</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Yi-Lexer-JavaScript.html#t:Operator">Operator</a> -&gt; <a href="Yi-Lexer-JavaScript.html#t:Operator">Operator</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Operator:Show:2" class="instance expander" onclick="toggleSection('i:id:Operator:Show:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:Show">Show</a> <a href="Yi-Lexer-JavaScript.html#t:Operator">Operator</a></span> <a href="src/Yi-Lexer-JavaScript.html#line-150" class="link">Source</a> <a href="#t:Operator" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Operator:Show:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Yi-Lexer-JavaScript.html#t:Operator">Operator</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Yi-Lexer-JavaScript.html#t:Operator">Operator</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Yi-Lexer-JavaScript.html#t:Operator">Operator</a>] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:HlState" class="def">HlState</a> = <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="src/Yi-Lexer-JavaScript.html#HlState" class="link">Source</a> <a href="#t:HlState" class="selflink">#</a></p><div class="doc"><p><code>HlState</code> is 0 when outside of a multi-line comment and -1 when inside one.</p></div></div><div class="top"><p class="src"><a id="v:prefixOperators" class="def">prefixOperators</a> :: [<a href="Yi-Lexer-JavaScript.html#t:Operator">Operator</a>] <a href="src/Yi-Lexer-JavaScript.html#prefixOperators" class="link">Source</a> <a href="#v:prefixOperators" class="selflink">#</a></p><div class="doc"><p>Prefix operators.  NOTE: Add' is also a valid prefix operator, but since
   it's completely useless in the real world, we don't care about it here.
   Doing this makes parsing much, much easier.</p></div></div><div class="top"><p class="src"><a id="v:infixOperators" class="def">infixOperators</a> :: [<a href="Yi-Lexer-JavaScript.html#t:Operator">Operator</a>] <a href="src/Yi-Lexer-JavaScript.html#infixOperators" class="link">Source</a> <a href="#v:infixOperators" class="selflink">#</a></p><div class="doc"><p>Infix operators.</p></div></div><div class="top"><p class="src"><a id="v:postfixOperators" class="def">postfixOperators</a> :: [<a href="Yi-Lexer-JavaScript.html#t:Operator">Operator</a>] <a href="src/Yi-Lexer-JavaScript.html#postfixOperators" class="link">Source</a> <a href="#v:postfixOperators" class="selflink">#</a></p><div class="doc"><p>Postfix operators.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.2</p></div></body></html>