diff options
Diffstat (limited to 'Doc/doxygen/html/_token_8h_source.html')
-rw-r--r-- | Doc/doxygen/html/_token_8h_source.html | 263 |
1 files changed, 263 insertions, 0 deletions
diff --git a/Doc/doxygen/html/_token_8h_source.html b/Doc/doxygen/html/_token_8h_source.html new file mode 100644 index 0000000..b349d46 --- /dev/null +++ b/Doc/doxygen/html/_token_8h_source.html @@ -0,0 +1,263 @@ +<!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/xhtml;charset=UTF-8"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<title>Starshatter_Open: D:/SRC/StarshatterSVN/Parser/Token.h Source File</title> +<link href="tabs.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="jquery.js"></script> +<script type="text/javascript" src="dynsections.js"></script> +<link href="navtree.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="resize.js"></script> +<script type="text/javascript" src="navtree.js"></script> +<script type="text/javascript"> + $(document).ready(initResizable); +</script> +<link href="search/search.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="search/search.js"></script> +<script type="text/javascript"> + $(document).ready(function() { searchBox.OnSelectItem(0); }); +</script> +<link href="doxygen.css" rel="stylesheet" type="text/css" /> +</head> +<body> +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <td style="padding-left: 0.5em;"> + <div id="projectname">Starshatter_Open + </div> + <div id="projectbrief">Open source Starshatter engine</div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.1 --> +<script type="text/javascript"> +var searchBox = new SearchBox("searchBox", "search",false,'Search'); +</script> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + <li> + <div id="MSearchBox" class="MSearchBoxInactive"> + <span class="left"> + <img id="MSearchSelect" src="search/mag_sel.png" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + alt=""/> + <input type="text" id="MSearchField" value="Search" accesskey="S" + onfocus="searchBox.OnSearchFieldFocus(true)" + onblur="searchBox.OnSearchFieldFocus(false)" + onkeyup="searchBox.OnSearchFieldChange(event)"/> + </span><span class="right"> + <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> + </span> + </div> + </li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +</div><!-- top --> +<div id="side-nav" class="ui-resizable side-nav-resizable"> + <div id="nav-tree"> + <div id="nav-tree-contents"> + </div> + </div> + <div id="splitbar" style="-moz-user-select:none;" + class="ui-resizable-handle"> + </div> +</div> +<script type="text/javascript"> +$(document).ready(function(){initNavTree('_token_8h.html','');}); +</script> +<div id="doc-content"> +<!-- window showing the filter options --> +<div id="MSearchSelectWindow" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + onkeydown="return searchBox.OnSearchSelectKey(event)"> +<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Macros</a></div> + +<!-- iframe showing the search results (closed by default) --> +<div id="MSearchResultsWindow"> +<iframe src="javascript:void(0)" frameborder="0" + name="MSearchResults" id="MSearchResults"> +</iframe> +</div> + +<div class="header"> + <div class="headertitle"> +<div class="title">Token.h</div> </div> +</div><!--header--> +<div class="contents"> +<a href="_token_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/* Project STARSHATTER</span></div> +<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> John DiCamillo</span></div> +<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> Copyright © 1997-2001. All Rights Reserved.</span></div> +<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"></span></div> +<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> SUBSYSTEM: Parser</span></div> +<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> FILE: Token.h</span></div> +<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> AUTHOR: John DiCamillo</span></div> +<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"></span></div> +<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span></div> +<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> OVERVIEW</span></div> +<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> ========</span></div> +<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> Scanner class definition</span></div> +<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">*/</span></div> +<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div> +<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#ifndef Token_h</span></div> +<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor"></span><span class="preprocessor">#define Token_h</span></div> +<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="_text_8h.html">Text.h</a>"</span></div> +<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="_dictionary_8h.html">Dictionary.h</a>"</span></div> +<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div> +<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#pragma warning( disable : 4237)</span></div> +<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor"></span> </div> +<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">// +-------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div> +<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">class </span><a class="code" href="class_reader.html">Reader</a>;</div> +<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">class </span><a class="code" href="class_token.html">Token</a>;</div> +<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">class </span><a class="code" href="class_scanner.html">Scanner</a>;</div> +<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div> +<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">// +-------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div> +<div class="line"><a name="l00031"></a><span class="lineno"><a class="code" href="class_token.html"> 31</a></span> <span class="keyword">class </span><a class="code" href="class_token.html">Token</a></div> +<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> {</div> +<div class="line"><a name="l00033"></a><span class="lineno"><a class="code" href="class_token.html#af4a8f36320cb35fb6b88d6b9a33cb524"> 33</a></span>  <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_scanner.html">Scanner</a>;</div> +<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div> +<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="keyword">public</span>:</div> +<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="comment">// keywords must be alphanumeric identifiers or symbolic identifiers</span></div> +<div class="line"><a name="l00037"></a><span class="lineno"><a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746ca0adcb15a0b3d5e788571500dc0aa5310"> 37</a></span>  <span class="keyword">enum</span> <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746c">Types</a> { <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746ca0adcb15a0b3d5e788571500dc0aa5310">Undefined</a>, <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746cafe90990ee4aae8fc6c43e9e33ef31482">Keyword</a>, <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746caf91a7f4a912186b43e2365c34aa800a9">AlphaIdent</a>, <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746cacfb67ede75a88bcde2fd581dca4815af">SymbolicIdent</a>, <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746cac042b89ad2e7731fd1ffa749130538d0">Comment</a>,</div> +<div class="line"><a name="l00038"></a><span class="lineno"><a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746cad4cb55daca2f0c0b1ad653fdc416b529"> 38</a></span>  <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746caff61c8dfd4aedb883e7793d5f2aee60a">IntLiteral</a>, <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746caa67c783147fac9d939156a7d802740c7">FloatLiteral</a>, <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746cad4cb55daca2f0c0b1ad653fdc416b529">StringLiteral</a>, <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746cadef966ef59b71869003bf1d660dd976c">CharLiteral</a>,</div> +<div class="line"><a name="l00039"></a><span class="lineno"><a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746ca40fa77f542cac5e2d9bb5c08da8b0329"> 39</a></span>  <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746cac44c7616b5ecfe82f9520ee0cf14cac3">Dot</a>, <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746ca4a9eb92cdd361c892fddc72e76e7a2bf">Comma</a>, <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746cabd63e5e732aa24d53e04028b36f4eab5">Colon</a>, <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746ca40fa77f542cac5e2d9bb5c08da8b0329">Semicolon</a>,</div> +<div class="line"><a name="l00040"></a><span class="lineno"><a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746ca44f31c03033e537ca380996881aaa78f"> 40</a></span>  <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746ca7b8a2b645bc8ac783c75221057f095aa">LParen</a>, <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746ca44f31c03033e537ca380996881aaa78f">RParen</a>, <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746ca18c3495b48997636926f68e155ef719c">LBracket</a>, <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746ca9034051e82f03d54f1e5577b344af43a">RBracket</a>, <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746cafcddee92822be82b55e5b58600495e90">LBrace</a>, <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746caaa8a1ab84c35f07144213ad78b664741">RBrace</a>,</div> +<div class="line"><a name="l00041"></a><span class="lineno"><a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746cad6aa16c33d362338742a589d59165d00"> 41</a></span>  <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746ca4addcfec4d2042e95d896e2319b44d43">EOT</a>, <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746cad6aa16c33d362338742a589d59165d00">LastTokenType</a> };</div> +<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div> +<div class="line"><a name="l00043"></a><span class="lineno"><a class="code" href="class_token.html#a5e7adb1cdd8f1c63730f6c914e4f8591ae5902a136866ab1c729c1112e5071c2d"> 43</a></span>  <span class="keyword">enum</span> <a class="code" href="class_token.html#a5e7adb1cdd8f1c63730f6c914e4f8591">Alias</a> { <a class="code" href="class_token.html#a5e7adb1cdd8f1c63730f6c914e4f8591ae5902a136866ab1c729c1112e5071c2d">CompoundSeparator</a> = <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746cac44c7616b5ecfe82f9520ee0cf14cac3">Dot</a>,</div> +<div class="line"><a name="l00044"></a><span class="lineno"><a class="code" href="class_token.html#a5e7adb1cdd8f1c63730f6c914e4f8591a3c34eb11ad3a6244864d08c2fac97a8a"> 44</a></span>  <a class="code" href="class_token.html#a5e7adb1cdd8f1c63730f6c914e4f8591a3c34eb11ad3a6244864d08c2fac97a8a">ItemSeparator</a> = <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746ca4a9eb92cdd361c892fddc72e76e7a2bf">Comma</a>,</div> +<div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="class_token.html#a5e7adb1cdd8f1c63730f6c914e4f8591a777d49dee36e7a5e28aecc7652d33ad8"> 45</a></span>  <a class="code" href="class_token.html#a5e7adb1cdd8f1c63730f6c914e4f8591a777d49dee36e7a5e28aecc7652d33ad8">StatementTerminator</a> = <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746ca40fa77f542cac5e2d9bb5c08da8b0329">Semicolon</a>,</div> +<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="class_token.html#a5e7adb1cdd8f1c63730f6c914e4f8591accd8e6ac4a0e7ce839321e481c427540"> 46</a></span>  <a class="code" href="class_token.html#a5e7adb1cdd8f1c63730f6c914e4f8591accd8e6ac4a0e7ce839321e481c427540">TypeIndicator</a> = <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746cabd63e5e732aa24d53e04028b36f4eab5">Colon</a>,</div> +<div class="line"><a name="l00047"></a><span class="lineno"><a class="code" href="class_token.html#a5e7adb1cdd8f1c63730f6c914e4f8591a3f9c6f9122ffce1dceebe8e87d63e9ba"> 47</a></span>  <a class="code" href="class_token.html#a5e7adb1cdd8f1c63730f6c914e4f8591a3f9c6f9122ffce1dceebe8e87d63e9ba">Lambda</a> = <a class="code" href="class_token.html#abbf7bef64a18a034df1c021c09e7746cad6aa16c33d362338742a589d59165d00">LastTokenType</a> + 1 };</div> +<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div> +<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <a class="code" href="class_token.html#aa3c5868ba4115f3189df6b2ac5b36f39">Token</a>();</div> +<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <a class="code" href="class_token.html#aa3c5868ba4115f3189df6b2ac5b36f39">Token</a>(<span class="keyword">const</span> <a class="code" href="class_token.html">Token</a>& rhs);</div> +<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <a class="code" href="class_token.html#aa3c5868ba4115f3189df6b2ac5b36f39">Token</a>(<span class="keywordtype">int</span> t);</div> +<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <a class="code" href="class_token.html#aa3c5868ba4115f3189df6b2ac5b36f39">Token</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* s, <span class="keywordtype">int</span> t, <span class="keywordtype">int</span> k=0, <span class="keywordtype">int</span> l=0, <span class="keywordtype">int</span> c=0);</div> +<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="class_token.html#aa3c5868ba4115f3189df6b2ac5b36f39">Token</a>(<span class="keyword">const</span> <a class="code" href="class_text.html">Text</a>& s, <span class="keywordtype">int</span> t, <span class="keywordtype">int</span> k=0, <span class="keywordtype">int</span> l=0, <span class="keywordtype">int</span> c=0);</div> +<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <a class="code" href="class_token.html#a3d7d59eaac1535df1433357d5d372f84">~Token</a>();</div> +<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  </div> +<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="class_token.html">Token</a>& <a class="code" href="class_token.html#a5ca1b9dcf1082d68cc167791bd072eec">operator = </a>(<span class="keyword">const</span> <a class="code" href="class_token.html">Token</a>& rhs);</div> +<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  </div> +<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordtype">bool</span> <a class="code" href="class_token.html#aa3575fa9e608225e1ce47ddc4faa50de">match</a>(<span class="keyword">const</span> <a class="code" href="class_token.html">Token</a>& ref) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div> +<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="class_text.html">Text</a> <a class="code" href="class_token.html#aa2f2f7f241c1e4c48e4373de95e2a8aa">symbol</a>() <span class="keyword">const</span>;</div> +<div class="line"><a name="l00061"></a><span class="lineno"><a class="code" href="class_token.html#a09c0ff9720be0b1f7592630aaea902c2"> 61</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_token.html#a09c0ff9720be0b1f7592630aaea902c2">type</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_token.html#a9bdca140d29f5e1cf2a909f1e9a755c5">mType</a>; }</div> +<div class="line"><a name="l00062"></a><span class="lineno"><a class="code" href="class_token.html#ac28c196eedabdd1656e01a48c6e899cb"> 62</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_token.html#ac28c196eedabdd1656e01a48c6e899cb">key</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_token.html#ac9b38bc7d4edfcf7cc81adeb062bd51f">mKey</a>; }</div> +<div class="line"><a name="l00063"></a><span class="lineno"><a class="code" href="class_token.html#a8e3d3bce7ab65c33abadab8fc0aa2f46"> 63</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_token.html#a8e3d3bce7ab65c33abadab8fc0aa2f46">line</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_token.html#a04201e0e697f8b3cc87993cb6a6ace79">mLine</a>; }</div> +<div class="line"><a name="l00064"></a><span class="lineno"><a class="code" href="class_token.html#ae814a8d1293aa3e17fcff49a655fde92"> 64</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_token.html#ae814a8d1293aa3e17fcff49a655fde92">column</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_token.html#ad1a5780d5a275df992cfcc0c6cfa3dcd">mColumn</a>; }</div> +<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  </div> +<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="class_text.html">Text</a> <a class="code" href="class_token.html#ab04d3742fb41407611200a9b3b229f5e">typestr</a>() <span class="keyword">const</span>;</div> +<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div> +<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keyword">static</span> <a class="code" href="class_text.html">Text</a> <a class="code" href="class_token.html#a1cf939ac35ff8b73d6fa4a9ba404b4d9">describe</a>(<span class="keyword">const</span> <a class="code" href="class_text.html">Text</a>& tok);</div> +<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_token.html#a5a123f31eaf4255d7808446ae579fdbc">addKey</a>(<span class="keyword">const</span> <a class="code" href="class_text.html">Text</a>& k, <span class="keywordtype">int</span> v);</div> +<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_token.html#affa4463635305a92fbfc83e6e1b5f13f">addKeys</a>(<a class="code" href="class_dictionary.html">Dictionary<int></a>& keys);</div> +<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="class_token.html#a68361b03ad36e855dab0bfc4b0986913">findKey</a>(<span class="keyword">const</span> <a class="code" href="class_text.html">Text</a>& k, <span class="keywordtype">int</span>& v);</div> +<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_token.html#a70979ca1071359e56f9cf925d132d3a1">comments</a>(<span class="keyword">const</span> <a class="code" href="class_text.html">Text</a>& begin, <span class="keyword">const</span> <a class="code" href="class_text.html">Text</a>& end);</div> +<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_token.html#affb78fa2ba868421e4c0314c21e848e4">altComments</a>(<span class="keyword">const</span> <a class="code" href="class_text.html">Text</a>& begin, <span class="keyword">const</span> <a class="code" href="class_text.html">Text</a>& end);</div> +<div class="line"><a name="l00074"></a><span class="lineno"><a class="code" href="class_token.html#ad86ece44ee10fcbab6b72b7dbc43b735"> 74</a></span>  <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_token.html#ad86ece44ee10fcbab6b72b7dbc43b735">hideComments</a>(<span class="keywordtype">bool</span> hide = <span class="keyword">true</span>) { <a class="code" href="class_token.html#a87d3b954c12e5201ac354534a19faa2f">hidecom</a> = hide; }</div> +<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div> +<div class="line"><a name="l00076"></a><span class="lineno"><a class="code" href="class_token.html#aca93f47c15d6290602aa7ff23b7607bd"> 76</a></span>  <span class="keyword">static</span> <span class="keywordtype">char</span> <a class="code" href="class_token.html#aca93f47c15d6290602aa7ff23b7607bd">comBeg</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i) { <span class="keywordflow">return</span> <a class="code" href="class_token.html#a60a2da465fa86fb112b4480d9e659ef7">combeg</a>[i]; }</div> +<div class="line"><a name="l00077"></a><span class="lineno"><a class="code" href="class_token.html#aead49d90a98bf008a77270c199e34247"> 77</a></span>  <span class="keyword">static</span> <span class="keywordtype">char</span> <a class="code" href="class_token.html#aead49d90a98bf008a77270c199e34247">comEnd</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i) { <span class="keywordflow">return</span> <a class="code" href="class_token.html#a61d517d8e8dd706b0f22fcebd2467662">comend</a>[i]; }</div> +<div class="line"><a name="l00078"></a><span class="lineno"><a class="code" href="class_token.html#a2d28f477f20e72fa53acd4300c24297a"> 78</a></span>  <span class="keyword">static</span> <span class="keywordtype">char</span> <a class="code" href="class_token.html#a2d28f477f20e72fa53acd4300c24297a">altBeg</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i) { <span class="keywordflow">return</span> <a class="code" href="class_token.html#a3080cb7265eb1ca68115c8a347c2fd95">altbeg</a>[i]; }</div> +<div class="line"><a name="l00079"></a><span class="lineno"><a class="code" href="class_token.html#a16fc5fa148fb48c44a62886678029021"> 79</a></span>  <span class="keyword">static</span> <span class="keywordtype">char</span> <a class="code" href="class_token.html#a16fc5fa148fb48c44a62886678029021">altEnd</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i) { <span class="keywordflow">return</span> <a class="code" href="class_token.html#a1dacfc81f552c640e561207f571c7d1e">altend</a>[i]; }</div> +<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  </div> +<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_token.html#a91baf48f9fd43ad53bd6fb4f422e9bb8">close</a>();</div> +<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div> +<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="keyword">protected</span>:</div> +<div class="line"><a name="l00084"></a><span class="lineno"><a class="code" href="class_token.html#a9453e86f2e171fb5aed9d31a4e54a582"> 84</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_token.html#a9453e86f2e171fb5aed9d31a4e54a582">mLength</a>;</div> +<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keyword">union </span>{</div> +<div class="line"><a name="l00086"></a><span class="lineno"><a class="code" href="class_token.html#a33b7c23d9aaf2fa95b10aecea720210e"> 86</a></span>  <span class="keywordtype">char</span> <a class="code" href="class_token.html#a33b7c23d9aaf2fa95b10aecea720210e">mSymbol</a>[8];</div> +<div class="line"><a name="l00087"></a><span class="lineno"><a class="code" href="class_token.html#a9a36b3959cc2a3dd285a95ed7f9a2ce0"> 87</a></span>  <span class="keywordtype">char</span>* <a class="code" href="class_token.html#a9a36b3959cc2a3dd285a95ed7f9a2ce0">mFullSymbol</a>;</div> +<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  };</div> +<div class="line"><a name="l00089"></a><span class="lineno"><a class="code" href="class_token.html#a9bdca140d29f5e1cf2a909f1e9a755c5"> 89</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_token.html#a9bdca140d29f5e1cf2a909f1e9a755c5">mType</a>;</div> +<div class="line"><a name="l00090"></a><span class="lineno"><a class="code" href="class_token.html#ac9b38bc7d4edfcf7cc81adeb062bd51f"> 90</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_token.html#ac9b38bc7d4edfcf7cc81adeb062bd51f">mKey</a>;</div> +<div class="line"><a name="l00091"></a><span class="lineno"><a class="code" href="class_token.html#a04201e0e697f8b3cc87993cb6a6ace79"> 91</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_token.html#a04201e0e697f8b3cc87993cb6a6ace79">mLine</a>;</div> +<div class="line"><a name="l00092"></a><span class="lineno"><a class="code" href="class_token.html#ad1a5780d5a275df992cfcc0c6cfa3dcd"> 92</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_token.html#ad1a5780d5a275df992cfcc0c6cfa3dcd">mColumn</a>;</div> +<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div> +<div class="line"><a name="l00094"></a><span class="lineno"><a class="code" href="class_token.html#a87d3b954c12e5201ac354534a19faa2f"> 94</a></span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="class_token.html#a87d3b954c12e5201ac354534a19faa2f">hidecom</a>;</div> +<div class="line"><a name="l00095"></a><span class="lineno"><a class="code" href="class_token.html#a60a2da465fa86fb112b4480d9e659ef7"> 95</a></span>  <span class="keyword">static</span> <span class="keywordtype">char</span> <a class="code" href="class_token.html#a60a2da465fa86fb112b4480d9e659ef7">combeg</a>[3];</div> +<div class="line"><a name="l00096"></a><span class="lineno"><a class="code" href="class_token.html#a61d517d8e8dd706b0f22fcebd2467662"> 96</a></span>  <span class="keyword">static</span> <span class="keywordtype">char</span> <a class="code" href="class_token.html#a61d517d8e8dd706b0f22fcebd2467662">comend</a>[3];</div> +<div class="line"><a name="l00097"></a><span class="lineno"><a class="code" href="class_token.html#a3080cb7265eb1ca68115c8a347c2fd95"> 97</a></span>  <span class="keyword">static</span> <span class="keywordtype">char</span> <a class="code" href="class_token.html#a3080cb7265eb1ca68115c8a347c2fd95">altbeg</a>[3];</div> +<div class="line"><a name="l00098"></a><span class="lineno"><a class="code" href="class_token.html#a1dacfc81f552c640e561207f571c7d1e"> 98</a></span>  <span class="keyword">static</span> <span class="keywordtype">char</span> <a class="code" href="class_token.html#a1dacfc81f552c640e561207f571c7d1e">altend</a>[3];</div> +<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div> +<div class="line"><a name="l00100"></a><span class="lineno"><a class="code" href="class_token.html#ac267674637753aeed9f6e88088890bb9"> 100</a></span>  <span class="keyword">static</span> <a class="code" href="class_dictionary.html">Dictionary<int></a> <a class="code" href="class_token.html#ac267674637753aeed9f6e88088890bb9">keymap</a>;</div> +<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> };</div> +<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div> +<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="comment">// +-------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> </div> +<div class="line"><a name="l00105"></a><span class="lineno"><a class="code" href="class_scanner.html"> 105</a></span> <span class="keyword">class </span><a class="code" href="class_scanner.html">Scanner</a></div> +<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> {</div> +<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="keyword">public</span>:</div> +<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="class_scanner.html#ae4dcd89c3ca515dfc874dcef57d2e3eb">Scanner</a>(<a class="code" href="class_reader.html">Reader</a>* r = 0);</div> +<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="class_scanner.html#ae4dcd89c3ca515dfc874dcef57d2e3eb">Scanner</a>(<span class="keyword">const</span> <a class="code" href="class_text.html">Text</a>& s);</div> +<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="class_scanner.html#ae4dcd89c3ca515dfc874dcef57d2e3eb">Scanner</a>(<span class="keyword">const</span> <a class="code" href="class_scanner.html">Scanner</a>& rhs);</div> +<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keyword">virtual</span> <a class="code" href="class_scanner.html#a39f85e20f3ca942fd0a8e4bce88c27c7">~Scanner</a>();</div> +<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  </div> +<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <a class="code" href="class_scanner.html">Scanner</a>& <a class="code" href="class_scanner.html#a70bc221bb39f5996f81e4edf908bc8ab">operator = </a>(<span class="keyword">const</span> <a class="code" href="class_scanner.html">Scanner</a>& rhs);</div> +<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div> +<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keywordtype">void</span> <a class="code" href="class_scanner.html#aa135726db88e23fa8c64ad249d94b498">Load</a>(<span class="keyword">const</span> <a class="code" href="class_text.html">Text</a>& s);</div> +<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div> +<div class="line"><a name="l00117"></a><span class="lineno"><a class="code" href="class_scanner.html#a88b532171664f9d70492ed2eb5577eb2a6075181af021236e3c62262223d414b7"> 117</a></span>  <span class="keyword">enum</span> <a class="code" href="class_scanner.html#a88b532171664f9d70492ed2eb5577eb2">Need</a> { <a class="code" href="class_scanner.html#a88b532171664f9d70492ed2eb5577eb2a928e05423a158e533527bf18412e5296">Demand</a>, <a class="code" href="class_scanner.html#a88b532171664f9d70492ed2eb5577eb2a6075181af021236e3c62262223d414b7">Request</a> };</div> +<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keyword">virtual</span> <a class="code" href="class_token.html">Token</a> <a class="code" href="class_scanner.html#a2adddc441414a96a279349c3361358b8">Get</a>(<a class="code" href="class_scanner.html#a88b532171664f9d70492ed2eb5577eb2">Need</a> n = <a class="code" href="class_scanner.html#a88b532171664f9d70492ed2eb5577eb2a928e05423a158e533527bf18412e5296">Demand</a>);</div> +<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> </div> +<div class="line"><a name="l00120"></a><span class="lineno"><a class="code" href="class_scanner.html#a79149c37ac7df930df39a1f9c81973fb"> 120</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_scanner.html#a79149c37ac7df930df39a1f9c81973fb">PutBack</a>() { <a class="code" href="class_scanner.html#a06d8b601cf14541a7d3dc095b6baf2e1">index</a> = <a class="code" href="class_scanner.html#add2601cde2f79ab000c3e7e5bf615347">old_index</a>; <a class="code" href="class_scanner.html#a79aeefa4c230194d28cd82c610c4fe97">line</a> = <a class="code" href="class_scanner.html#a147f0ff44e092e504f79673735ffae25">old_line</a>; }</div> +<div class="line"><a name="l00121"></a><span class="lineno"><a class="code" href="class_scanner.html#ae460df61f7b6a2a07fee5067870997a9"> 121</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_scanner.html#ae460df61f7b6a2a07fee5067870997a9">GetCursor</a>() { <span class="keywordflow">return</span> <a class="code" href="class_scanner.html#a06d8b601cf14541a7d3dc095b6baf2e1">index</a>; }</div> +<div class="line"><a name="l00122"></a><span class="lineno"><a class="code" href="class_scanner.html#aa57db83c2f5671d832032b07fdbe39a0"> 122</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_scanner.html#aa57db83c2f5671d832032b07fdbe39a0">GetLine</a>() { <span class="keywordflow">return</span> <a class="code" href="class_scanner.html#a79aeefa4c230194d28cd82c610c4fe97">line</a>; }</div> +<div class="line"><a name="l00123"></a><span class="lineno"><a class="code" href="class_scanner.html#a5f8e1eb7a75d7fb13bf2225816779257"> 123</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_scanner.html#a5f8e1eb7a75d7fb13bf2225816779257">Reset</a>(<span class="keywordtype">int</span> c, <span class="keywordtype">int</span> l) { <a class="code" href="class_scanner.html#a06d8b601cf14541a7d3dc095b6baf2e1">index</a> = <a class="code" href="class_scanner.html#add2601cde2f79ab000c3e7e5bf615347">old_index</a> = c; <a class="code" href="class_scanner.html#a79aeefa4c230194d28cd82c610c4fe97">line</a> = <a class="code" href="class_scanner.html#a147f0ff44e092e504f79673735ffae25">old_line</a> = l; }</div> +<div class="line"><a name="l00124"></a><span class="lineno"><a class="code" href="class_scanner.html#a3500b280ab3587c69a08970c9d3fe91b"> 124</a></span>  <a class="code" href="class_token.html">Token</a> <a class="code" href="class_scanner.html#a3500b280ab3587c69a08970c9d3fe91b">Best</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_scanner.html#a72871ce12e1d1e4fbd523d53ea3a94f5">best</a>; }</div> +<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div> +<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="keyword">protected</span>:</div> +<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_scanner.html#a49025f7ed51937a427cf0d51581a5b21">GetNumeric</a>();</div> +<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_scanner.html#adadd961dd24b8b2af8b73bca47ff84bc">IsSymbolic</a>(<span class="keywordtype">char</span> c);</div> +<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_scanner.html#a8055f6fb1b0951d2e864287f81562a61">IsAlpha</a>(<span class="keywordtype">char</span> c);</div> +<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div> +<div class="line"><a name="l00131"></a><span class="lineno"><a class="code" href="class_scanner.html#ae98c939d6c202d631d0d5b4b8ca99767"> 131</a></span>  <a class="code" href="class_reader.html">Reader</a>* <a class="code" href="class_scanner.html#ae98c939d6c202d631d0d5b4b8ca99767">reader</a>;</div> +<div class="line"><a name="l00132"></a><span class="lineno"><a class="code" href="class_scanner.html#aeaec500bd7352126551743cb87a6c0f6"> 132</a></span>  <span class="keywordtype">char</span>* <a class="code" href="class_scanner.html#aeaec500bd7352126551743cb87a6c0f6">str</a>;</div> +<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div> +<div class="line"><a name="l00134"></a><span class="lineno"><a class="code" href="class_scanner.html#a34cc1bcef3a6e42229aa195b5c86ca63"> 134</a></span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_scanner.html#a34cc1bcef3a6e42229aa195b5c86ca63">p</a>;</div> +<div class="line"><a name="l00135"></a><span class="lineno"><a class="code" href="class_scanner.html#ac7f0542352f84732d3c156e56ca7e7d7"> 135</a></span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_scanner.html#ac7f0542352f84732d3c156e56ca7e7d7">eos</a>;</div> +<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div> +<div class="line"><a name="l00137"></a><span class="lineno"><a class="code" href="class_scanner.html#a06d8b601cf14541a7d3dc095b6baf2e1"> 137</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="class_scanner.html#a06d8b601cf14541a7d3dc095b6baf2e1">index</a>;</div> +<div class="line"><a name="l00138"></a><span class="lineno"><a class="code" href="class_scanner.html#add2601cde2f79ab000c3e7e5bf615347"> 138</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="class_scanner.html#add2601cde2f79ab000c3e7e5bf615347">old_index</a>;</div> +<div class="line"><a name="l00139"></a><span class="lineno"><a class="code" href="class_scanner.html#a72871ce12e1d1e4fbd523d53ea3a94f5"> 139</a></span>  <a class="code" href="class_token.html">Token</a> <a class="code" href="class_scanner.html#a72871ce12e1d1e4fbd523d53ea3a94f5">best</a>;</div> +<div class="line"><a name="l00140"></a><span class="lineno"><a class="code" href="class_scanner.html#ac76935b380113dad5a15a8ea048ae3ad"> 140</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="class_scanner.html#ac76935b380113dad5a15a8ea048ae3ad">length</a>;</div> +<div class="line"><a name="l00141"></a><span class="lineno"><a class="code" href="class_scanner.html#a79aeefa4c230194d28cd82c610c4fe97"> 141</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="class_scanner.html#a79aeefa4c230194d28cd82c610c4fe97">line</a>;</div> +<div class="line"><a name="l00142"></a><span class="lineno"><a class="code" href="class_scanner.html#a147f0ff44e092e504f79673735ffae25"> 142</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="class_scanner.html#a147f0ff44e092e504f79673735ffae25">old_line</a>;</div> +<div class="line"><a name="l00143"></a><span class="lineno"><a class="code" href="class_scanner.html#af4b2ec0bff97ea983b9cea1edc370106"> 143</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="class_scanner.html#af4b2ec0bff97ea983b9cea1edc370106">lineStart</a>;</div> +<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> };</div> +<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> </div> +<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="preprocessor">#endif // TOKEN_H</span></div> +</div><!-- fragment --></div><!-- contents --> +</div><!-- doc-content --> +<!-- start footer part --> +<div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> + <ul> + <li class="navelem"><a class="el" href="dir_df9c4130e7601915b63fc941466b92f8.html">Parser</a></li><li class="navelem"><a class="el" href="_token_8h.html">Token.h</a></li> + <li class="footer">Generated on Thu May 31 2012 16:31:00 for Starshatter_Open by + <a href="http://www.doxygen.org/index.html"> + <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1 </li> + </ul> +</div> +</body> +</html> |