268 lines
48 KiB
HTML
268 lines
48 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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"/>
|
|
<meta name="generator" content="Doxygen 1.9.1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>sapphirec: src/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="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
|
|
<link href="doxygen-awesome-sidebar-only.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 id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">sapphirec
|
|
</div>
|
|
<div id="projectbrief">The Sapphire documentation</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.1 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('_token_8h_source.html',''); initResizable(); });
|
|
/* @license-end */
|
|
</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)">
|
|
</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="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#include "<a class="code" href="_location_8h.html">Location.h</a>"</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor">#include "<a class="code" href="sapphirepch_8h.html">sapphirepch.h</a>"</span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>  </div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">/* All current token types. Will change in the future. */</span></div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921"> 6</a></span> <span class="keyword">enum</span> <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921">TokenType</a></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> {</div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a914ff833832dec5f5b89c873cdf4873b"> 8</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a914ff833832dec5f5b89c873cdf4873b">TT_Identifier</a>,</div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921af0b33aa8547139ec0850566aa75c2eab"> 9</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921af0b33aa8547139ec0850566aa75c2eab">TT_Number</a>,</div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921adce0a868eda6a8eb7c0f4b471168a52f"> 10</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921adce0a868eda6a8eb7c0f4b471168a52f">TT_Float</a>,</div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a4f2472f5e8f25e20351884b984a5745d"> 11</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a4f2472f5e8f25e20351884b984a5745d">TT_Keyword</a>,</div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921ac5d8b9e1d3e5e0556207d113144ca9ef"> 12</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921ac5d8b9e1d3e5e0556207d113144ca9ef">TT_String</a>,</div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a8dc57a25d3d43203efa4abfc428f4ae5"> 13</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a8dc57a25d3d43203efa4abfc428f4ae5">TT_Plus</a>,</div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a37610de04974a9df954007ad9fddcec6"> 14</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a37610de04974a9df954007ad9fddcec6">TT_Minus</a>,</div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a7b1c59205c8e47772905efa820e26276"> 15</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a7b1c59205c8e47772905efa820e26276">TT_Mul</a>,</div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a7034d195d5b509782b1a2c2803e0b887"> 16</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a7034d195d5b509782b1a2c2803e0b887">TT_Div</a>,</div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a66be6e287e64f2d1e18d62b1d96bf443"> 17</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a66be6e287e64f2d1e18d62b1d96bf443">TT_At</a>,</div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a2e3a97dd6681a583d131a7f45b8f7b3b"> 18</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a2e3a97dd6681a583d131a7f45b8f7b3b">TT_Equal</a>,</div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a04d3947200d1e0ea47f23132c21d1552"> 19</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a04d3947200d1e0ea47f23132c21d1552">TT_LessThan</a>,</div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a6088f4c9eb2333511f59a9d4fcb0cc23"> 20</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a6088f4c9eb2333511f59a9d4fcb0cc23">TT_GreaterThan</a>,</div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921aa74df126f021c6c3370b2469e13a4d58"> 21</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921aa74df126f021c6c3370b2469e13a4d58">TT_LParen</a>,</div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a0b02ea10bfa1b86223505526e152850c"> 22</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a0b02ea10bfa1b86223505526e152850c">TT_RParen</a>,</div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a046adff178e040a45fba3807d1b27077"> 23</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a046adff178e040a45fba3807d1b27077">TT_LBracket</a>,</div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a55662755fa0c3e80c4b8a137a822fe56"> 24</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a55662755fa0c3e80c4b8a137a822fe56">TT_RBracket</a>,</div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a0cf876fc815f0bbdf381a0b6b3e9c8a1"> 25</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a0cf876fc815f0bbdf381a0b6b3e9c8a1">TT_Semicolon</a>,</div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a919ddabf40eacf261afb90628132c2e9"> 26</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a919ddabf40eacf261afb90628132c2e9">TT_LoadedString</a>,</div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921aaffedff66c98c1bc186e2c35cdc7ab66"> 27</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921aaffedff66c98c1bc186e2c35cdc7ab66">TT_EOF</a>,</div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921aae8a36dd5042ffdff357cb3caaec8de4"> 28</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921aae8a36dd5042ffdff357cb3caaec8de4">TT_Null</a>,</div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921aab9f3972ab9b942c5a558acb2c8200a2"> 29</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921aab9f3972ab9b942c5a558acb2c8200a2">TT_Equals</a>,</div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a661cacfb4b927c1410ae99cc07f47114"> 30</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a661cacfb4b927c1410ae99cc07f47114">TT_GTE</a>,</div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921abe295cb0b1d7e40b683e841099ca0d5c"> 31</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921abe295cb0b1d7e40b683e841099ca0d5c">TT_LTE</a>,</div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a1bfe153b7024483e5b14df5f4a19c383"> 32</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a1bfe153b7024483e5b14df5f4a19c383">TT_Period</a>,</div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921ad465a2b2741ddb105fd810f40fdfc5f8"> 33</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921ad465a2b2741ddb105fd810f40fdfc5f8">TT_Comma</a>,</div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a7a6334e5907fea7b13cb5c3168bf56d3"> 34</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a7a6334e5907fea7b13cb5c3168bf56d3">TT_Path</a>,</div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921abb589d9450ffea8e2652a357954b399d"> 35</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921abb589d9450ffea8e2652a357954b399d">TT_Exclamation</a>,</div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a52a3bc78510da97e3610a2c90e9af027"> 36</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a52a3bc78510da97e3610a2c90e9af027">TT_NEqual</a>,</div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a72cd35b410262b2cdf1b6f426561316e"> 37</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a72cd35b410262b2cdf1b6f426561316e">TT_LSQB</a>,</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921afca02f5c4e306e125b6aef30093c2fbb"> 38</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921afca02f5c4e306e125b6aef30093c2fbb">TT_RSQB</a>,</div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a6afc064c5b6cb4603534e73a261decef"> 39</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a6afc064c5b6cb4603534e73a261decef">TT_Type</a>,</div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921ac0842324f82fc7067e12cf5bc1e93ebe"> 40</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921ac0842324f82fc7067e12cf5bc1e93ebe">TT_Import</a>,</div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921aa991c9be0fb4d126936f15739e0cc581"> 41</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921aa991c9be0fb4d126936f15739e0cc581">TT_Syscall0</a>,</div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a7f3fbd8a2c479e24962b1257ba1a75cc"> 42</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a7f3fbd8a2c479e24962b1257ba1a75cc">TT_Syscall1</a>,</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a47c37018ac199a24001f7ae088a770ad"> 43</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a47c37018ac199a24001f7ae088a770ad">TT_Syscall2</a>,</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a932e0b4b6ad328fd42a372b19f5efa14"> 44</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a932e0b4b6ad328fd42a372b19f5efa14">TT_Syscall3</a>,</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a4f33569f79146c4955920b6b1273f100"> 45</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a4f33569f79146c4955920b6b1273f100">TT_Syscall4</a>,</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a03295c72f650bc6058eeaa1c4de14b1f"> 46</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a03295c72f650bc6058eeaa1c4de14b1f">TT_Syscall5</a>,</div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921ad815e2ddb15829189dd39b0481c3908e">TT_CompilerMacro</a></div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921ad815e2ddb15829189dd39b0481c3908e"> 48</a></span> };</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  </div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="keyword">extern</span> <span class="keyword">const</span> std::string <a class="code" href="_token_8h.html#a11b1388fc87d0706641b71f004f5ce29">token_strings</a>[];</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="comment">/* Struct to represent tokens generated by the Lexer. */</span></div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="struct_token.html"> 53</a></span> <span class="keyword">struct </span><a class="code" href="struct_token.html">Token</a></div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> {</div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="struct_token.html#afeecd45f0f912778b11fffe0abb299b5"> 55</a></span>  <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921">TokenType</a> <a class="code" href="struct_token.html#afeecd45f0f912778b11fffe0abb299b5">tk_type</a>;</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  </div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="struct_token.html#a0bd1ec80054e52bb87e5f5c4fd2f6931"> 57</a></span>  <span class="keywordtype">int</span> <a class="code" href="struct_token.html#a0bd1ec80054e52bb87e5f5c4fd2f6931">int_value</a>;</div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="struct_token.html#a15eec7ad7fced0b21918e04a3e6c639c"> 58</a></span>  std::string <a class="code" href="struct_token.html#a15eec7ad7fced0b21918e04a3e6c639c">string_value</a>;</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="struct_token.html#a92a5a00e9160db302b651c44c3658051"> 59</a></span>  <span class="keywordtype">float</span> <a class="code" href="struct_token.html#a92a5a00e9160db302b651c44c3658051">float_value</a>;</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  </div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="struct_token.html#a33ccd4b1d4d4e2690a54f6ed39a7bf06"> 61</a></span>  <a class="code" href="struct_location.html">Location</a> <a class="code" href="struct_token.html#a33ccd4b1d4d4e2690a54f6ed39a7bf06">loc</a>;</div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  </div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="code" href="struct_token.html#ab74d6b5fef46e3c194229e7a884cad45">Token</a>(<span class="keyword">const</span> <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921">TokenType</a>& type);</div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  </div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="struct_token.html#ab74d6b5fef46e3c194229e7a884cad45">Token</a>(<span class="keyword">const</span> <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921">TokenType</a>& type, <span class="keyword">const</span> <a class="code" href="struct_location.html">Location</a>& location);</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  </div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="struct_token.html#ab74d6b5fef46e3c194229e7a884cad45">Token</a>(<span class="keyword">const</span> <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921">TokenType</a>& type, <span class="keyword">const</span> <span class="keywordtype">int</span>& val, <span class="keyword">const</span> <a class="code" href="struct_location.html">Location</a>& location);</div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  </div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <a class="code" href="struct_token.html#ab74d6b5fef46e3c194229e7a884cad45">Token</a>(<span class="keyword">const</span> <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921">TokenType</a>& type, <span class="keyword">const</span> std::string& val, <span class="keyword">const</span> <a class="code" href="struct_location.html">Location</a>& location);</div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  </div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="struct_token.html#ab74d6b5fef46e3c194229e7a884cad45">Token</a>(<span class="keyword">const</span> <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921">TokenType</a>& type, <span class="keyword">const</span> std::string& val);</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="struct_token.html#ab74d6b5fef46e3c194229e7a884cad45">Token</a>(<span class="keyword">const</span> <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921">TokenType</a>& type, <span class="keyword">const</span> <span class="keywordtype">float</span>& val, <span class="keyword">const</span> <a class="code" href="struct_location.html">Location</a>& location);</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  </div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="struct_token.html#a3d7d59eaac1535df1433357d5d372f84">~Token</a>();</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  </div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="comment">/* Return a string representation of the Token's contents. */</span></div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  std::string <a class="code" href="struct_token.html#a602aa1415de3415044205333495e72f5">to_string</a>() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  </div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="comment">/* Return the contents of the line where the Token was located. */</span></div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  std::string <a class="code" href="struct_token.html#a432fb89b5fed83bd753f99a5ea10e2e6">line</a>() <span class="keyword">const</span>;</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="comment">/* Return a copy of the original token, but adding the contents of the line where</span></div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="comment"> the token was located. */</span></div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keyword">static</span> <a class="code" href="struct_token.html">Token</a> <a class="code" href="struct_token.html#a6c00b26185c109de4c2b79bd756defa1">make_with_line</a>(<span class="keyword">const</span> <a class="code" href="struct_token.html">Token</a>& origin, <span class="keyword">const</span> std::string& line_text);</div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  </div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordtype">void</span> <a class="code" href="struct_token.html#ab58cab5077c1c4c4671964595308c3fc">operator=</a>(<span class="keyword">const</span> <a class="code" href="struct_token.html">Token</a>& other);</div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  </div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="comment">/* Convert the Token into a blank token (does not delete it), so that the Normalizer can remove it afterwards.</span></div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="comment"> This is to not alter vectors while iterating over them. */</span></div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="struct_token.html#a2d401d11a0b5cb39e1505dbaf13fee82">erase</a>(<a class="code" href="struct_token.html">Token</a>& tk);</div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  </div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="comment">/* Return a copy of this Token, but with its TokenType changed. */</span></div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <a class="code" href="struct_token.html">Token</a> <a class="code" href="struct_token.html#a036d56315ccd55329e9e1e2271b16795">copy_with_new_type</a>(<span class="keyword">const</span> <a class="code" href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921">TokenType</a>& type);</div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="comment">/* Iterate over two vectors of Tokens, starting from count for vector A, starting from 0 for vector B, checking if</span></div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="comment"> the current Tokens' types match. If at any point they don't, return false. Else, return true. */</span></div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="struct_token.html#a0eaf331871c69faf7c37d8e87db1f7e6">match_token_types</a>(<span class="keyword">const</span> std::vector<Token>& a, <span class="keyword">const</span> std::vector<Token>& b, <span class="keywordtype">int</span> count);</div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  </div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keyword">private</span>:</div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  std::string line_text;</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>  </div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="comment">/* typedef to make it easier to see a what a std::vector of tokens is being used for. */</span></div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="_token_8h.html#a43f892d4a347a32f8602cfbcff2e237e"> 105</a></span> <span class="keyword">typedef</span> std::vector<Token> <a class="code" href="_token_8h.html#a43f892d4a347a32f8602cfbcff2e237e">TokenStream</a>;</div>
|
|
<div class="ttc" id="a_location_8h_html"><div class="ttname"><a href="_location_8h.html">Location.h</a></div></div>
|
|
<div class="ttc" id="a_token_8h_html_a11b1388fc87d0706641b71f004f5ce29"><div class="ttname"><a href="_token_8h.html#a11b1388fc87d0706641b71f004f5ce29">token_strings</a></div><div class="ttdeci">const std::string token_strings[]</div><div class="ttdef"><b>Definition:</b> Token.cpp:4</div></div>
|
|
<div class="ttc" id="a_token_8h_html_a43f892d4a347a32f8602cfbcff2e237e"><div class="ttname"><a href="_token_8h.html#a43f892d4a347a32f8602cfbcff2e237e">TokenStream</a></div><div class="ttdeci">std::vector< Token > TokenStream</div><div class="ttdef"><b>Definition:</b> Token.h:105</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921">TokenType</a></div><div class="ttdeci">TokenType</div><div class="ttdef"><b>Definition:</b> Token.h:7</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a03295c72f650bc6058eeaa1c4de14b1f"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a03295c72f650bc6058eeaa1c4de14b1f">TT_Syscall5</a></div><div class="ttdeci">@ TT_Syscall5</div><div class="ttdef"><b>Definition:</b> Token.h:46</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a046adff178e040a45fba3807d1b27077"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a046adff178e040a45fba3807d1b27077">TT_LBracket</a></div><div class="ttdeci">@ TT_LBracket</div><div class="ttdef"><b>Definition:</b> Token.h:23</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a04d3947200d1e0ea47f23132c21d1552"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a04d3947200d1e0ea47f23132c21d1552">TT_LessThan</a></div><div class="ttdeci">@ TT_LessThan</div><div class="ttdef"><b>Definition:</b> Token.h:19</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a0b02ea10bfa1b86223505526e152850c"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a0b02ea10bfa1b86223505526e152850c">TT_RParen</a></div><div class="ttdeci">@ TT_RParen</div><div class="ttdef"><b>Definition:</b> Token.h:22</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a0cf876fc815f0bbdf381a0b6b3e9c8a1"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a0cf876fc815f0bbdf381a0b6b3e9c8a1">TT_Semicolon</a></div><div class="ttdeci">@ TT_Semicolon</div><div class="ttdef"><b>Definition:</b> Token.h:25</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a1bfe153b7024483e5b14df5f4a19c383"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a1bfe153b7024483e5b14df5f4a19c383">TT_Period</a></div><div class="ttdeci">@ TT_Period</div><div class="ttdef"><b>Definition:</b> Token.h:32</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a2e3a97dd6681a583d131a7f45b8f7b3b"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a2e3a97dd6681a583d131a7f45b8f7b3b">TT_Equal</a></div><div class="ttdeci">@ TT_Equal</div><div class="ttdef"><b>Definition:</b> Token.h:18</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a37610de04974a9df954007ad9fddcec6"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a37610de04974a9df954007ad9fddcec6">TT_Minus</a></div><div class="ttdeci">@ TT_Minus</div><div class="ttdef"><b>Definition:</b> Token.h:14</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a47c37018ac199a24001f7ae088a770ad"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a47c37018ac199a24001f7ae088a770ad">TT_Syscall2</a></div><div class="ttdeci">@ TT_Syscall2</div><div class="ttdef"><b>Definition:</b> Token.h:43</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a4f2472f5e8f25e20351884b984a5745d"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a4f2472f5e8f25e20351884b984a5745d">TT_Keyword</a></div><div class="ttdeci">@ TT_Keyword</div><div class="ttdef"><b>Definition:</b> Token.h:11</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a4f33569f79146c4955920b6b1273f100"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a4f33569f79146c4955920b6b1273f100">TT_Syscall4</a></div><div class="ttdeci">@ TT_Syscall4</div><div class="ttdef"><b>Definition:</b> Token.h:45</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a52a3bc78510da97e3610a2c90e9af027"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a52a3bc78510da97e3610a2c90e9af027">TT_NEqual</a></div><div class="ttdeci">@ TT_NEqual</div><div class="ttdef"><b>Definition:</b> Token.h:36</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a55662755fa0c3e80c4b8a137a822fe56"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a55662755fa0c3e80c4b8a137a822fe56">TT_RBracket</a></div><div class="ttdeci">@ TT_RBracket</div><div class="ttdef"><b>Definition:</b> Token.h:24</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a6088f4c9eb2333511f59a9d4fcb0cc23"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a6088f4c9eb2333511f59a9d4fcb0cc23">TT_GreaterThan</a></div><div class="ttdeci">@ TT_GreaterThan</div><div class="ttdef"><b>Definition:</b> Token.h:20</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a661cacfb4b927c1410ae99cc07f47114"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a661cacfb4b927c1410ae99cc07f47114">TT_GTE</a></div><div class="ttdeci">@ TT_GTE</div><div class="ttdef"><b>Definition:</b> Token.h:30</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a66be6e287e64f2d1e18d62b1d96bf443"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a66be6e287e64f2d1e18d62b1d96bf443">TT_At</a></div><div class="ttdeci">@ TT_At</div><div class="ttdef"><b>Definition:</b> Token.h:17</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a6afc064c5b6cb4603534e73a261decef"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a6afc064c5b6cb4603534e73a261decef">TT_Type</a></div><div class="ttdeci">@ TT_Type</div><div class="ttdef"><b>Definition:</b> Token.h:39</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a7034d195d5b509782b1a2c2803e0b887"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a7034d195d5b509782b1a2c2803e0b887">TT_Div</a></div><div class="ttdeci">@ TT_Div</div><div class="ttdef"><b>Definition:</b> Token.h:16</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a72cd35b410262b2cdf1b6f426561316e"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a72cd35b410262b2cdf1b6f426561316e">TT_LSQB</a></div><div class="ttdeci">@ TT_LSQB</div><div class="ttdef"><b>Definition:</b> Token.h:37</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a7a6334e5907fea7b13cb5c3168bf56d3"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a7a6334e5907fea7b13cb5c3168bf56d3">TT_Path</a></div><div class="ttdeci">@ TT_Path</div><div class="ttdef"><b>Definition:</b> Token.h:34</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a7b1c59205c8e47772905efa820e26276"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a7b1c59205c8e47772905efa820e26276">TT_Mul</a></div><div class="ttdeci">@ TT_Mul</div><div class="ttdef"><b>Definition:</b> Token.h:15</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a7f3fbd8a2c479e24962b1257ba1a75cc"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a7f3fbd8a2c479e24962b1257ba1a75cc">TT_Syscall1</a></div><div class="ttdeci">@ TT_Syscall1</div><div class="ttdef"><b>Definition:</b> Token.h:42</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a8dc57a25d3d43203efa4abfc428f4ae5"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a8dc57a25d3d43203efa4abfc428f4ae5">TT_Plus</a></div><div class="ttdeci">@ TT_Plus</div><div class="ttdef"><b>Definition:</b> Token.h:13</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a914ff833832dec5f5b89c873cdf4873b"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a914ff833832dec5f5b89c873cdf4873b">TT_Identifier</a></div><div class="ttdeci">@ TT_Identifier</div><div class="ttdef"><b>Definition:</b> Token.h:8</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a919ddabf40eacf261afb90628132c2e9"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a919ddabf40eacf261afb90628132c2e9">TT_LoadedString</a></div><div class="ttdeci">@ TT_LoadedString</div><div class="ttdef"><b>Definition:</b> Token.h:26</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921a932e0b4b6ad328fd42a372b19f5efa14"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921a932e0b4b6ad328fd42a372b19f5efa14">TT_Syscall3</a></div><div class="ttdeci">@ TT_Syscall3</div><div class="ttdef"><b>Definition:</b> Token.h:44</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921aa74df126f021c6c3370b2469e13a4d58"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921aa74df126f021c6c3370b2469e13a4d58">TT_LParen</a></div><div class="ttdeci">@ TT_LParen</div><div class="ttdef"><b>Definition:</b> Token.h:21</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921aa991c9be0fb4d126936f15739e0cc581"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921aa991c9be0fb4d126936f15739e0cc581">TT_Syscall0</a></div><div class="ttdeci">@ TT_Syscall0</div><div class="ttdef"><b>Definition:</b> Token.h:41</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921aab9f3972ab9b942c5a558acb2c8200a2"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921aab9f3972ab9b942c5a558acb2c8200a2">TT_Equals</a></div><div class="ttdeci">@ TT_Equals</div><div class="ttdef"><b>Definition:</b> Token.h:29</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921aae8a36dd5042ffdff357cb3caaec8de4"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921aae8a36dd5042ffdff357cb3caaec8de4">TT_Null</a></div><div class="ttdeci">@ TT_Null</div><div class="ttdef"><b>Definition:</b> Token.h:28</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921aaffedff66c98c1bc186e2c35cdc7ab66"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921aaffedff66c98c1bc186e2c35cdc7ab66">TT_EOF</a></div><div class="ttdeci">@ TT_EOF</div><div class="ttdef"><b>Definition:</b> Token.h:27</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921abb589d9450ffea8e2652a357954b399d"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921abb589d9450ffea8e2652a357954b399d">TT_Exclamation</a></div><div class="ttdeci">@ TT_Exclamation</div><div class="ttdef"><b>Definition:</b> Token.h:35</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921abe295cb0b1d7e40b683e841099ca0d5c"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921abe295cb0b1d7e40b683e841099ca0d5c">TT_LTE</a></div><div class="ttdeci">@ TT_LTE</div><div class="ttdef"><b>Definition:</b> Token.h:31</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921ac0842324f82fc7067e12cf5bc1e93ebe"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921ac0842324f82fc7067e12cf5bc1e93ebe">TT_Import</a></div><div class="ttdeci">@ TT_Import</div><div class="ttdef"><b>Definition:</b> Token.h:40</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921ac5d8b9e1d3e5e0556207d113144ca9ef"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921ac5d8b9e1d3e5e0556207d113144ca9ef">TT_String</a></div><div class="ttdeci">@ TT_String</div><div class="ttdef"><b>Definition:</b> Token.h:12</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921ad465a2b2741ddb105fd810f40fdfc5f8"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921ad465a2b2741ddb105fd810f40fdfc5f8">TT_Comma</a></div><div class="ttdeci">@ TT_Comma</div><div class="ttdef"><b>Definition:</b> Token.h:33</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921ad815e2ddb15829189dd39b0481c3908e"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921ad815e2ddb15829189dd39b0481c3908e">TT_CompilerMacro</a></div><div class="ttdeci">@ TT_CompilerMacro</div><div class="ttdef"><b>Definition:</b> Token.h:47</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921adce0a868eda6a8eb7c0f4b471168a52f"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921adce0a868eda6a8eb7c0f4b471168a52f">TT_Float</a></div><div class="ttdeci">@ TT_Float</div><div class="ttdef"><b>Definition:</b> Token.h:10</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921af0b33aa8547139ec0850566aa75c2eab"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921af0b33aa8547139ec0850566aa75c2eab">TT_Number</a></div><div class="ttdeci">@ TT_Number</div><div class="ttdef"><b>Definition:</b> Token.h:9</div></div>
|
|
<div class="ttc" id="a_token_8h_html_aa520fbf142ba1e7e659590c07da31921afca02f5c4e306e125b6aef30093c2fbb"><div class="ttname"><a href="_token_8h.html#aa520fbf142ba1e7e659590c07da31921afca02f5c4e306e125b6aef30093c2fbb">TT_RSQB</a></div><div class="ttdeci">@ TT_RSQB</div><div class="ttdef"><b>Definition:</b> Token.h:38</div></div>
|
|
<div class="ttc" id="asapphirepch_8h_html"><div class="ttname"><a href="sapphirepch_8h.html">sapphirepch.h</a></div></div>
|
|
<div class="ttc" id="astruct_location_html"><div class="ttname"><a href="struct_location.html">Location</a></div><div class="ttdef"><b>Definition:</b> Location.h:6</div></div>
|
|
<div class="ttc" id="astruct_token_html"><div class="ttname"><a href="struct_token.html">Token</a></div><div class="ttdef"><b>Definition:</b> Token.h:54</div></div>
|
|
<div class="ttc" id="astruct_token_html_a036d56315ccd55329e9e1e2271b16795"><div class="ttname"><a href="struct_token.html#a036d56315ccd55329e9e1e2271b16795">Token::copy_with_new_type</a></div><div class="ttdeci">Token copy_with_new_type(const TokenType &type)</div><div class="ttdef"><b>Definition:</b> Token.cpp:44</div></div>
|
|
<div class="ttc" id="astruct_token_html_a0bd1ec80054e52bb87e5f5c4fd2f6931"><div class="ttname"><a href="struct_token.html#a0bd1ec80054e52bb87e5f5c4fd2f6931">Token::int_value</a></div><div class="ttdeci">int int_value</div><div class="ttdef"><b>Definition:</b> Token.h:57</div></div>
|
|
<div class="ttc" id="astruct_token_html_a0eaf331871c69faf7c37d8e87db1f7e6"><div class="ttname"><a href="struct_token.html#a0eaf331871c69faf7c37d8e87db1f7e6">Token::match_token_types</a></div><div class="ttdeci">static bool match_token_types(const std::vector< Token > &a, const std::vector< Token > &b, int count)</div><div class="ttdef"><b>Definition:</b> Token.cpp:189</div></div>
|
|
<div class="ttc" id="astruct_token_html_a15eec7ad7fced0b21918e04a3e6c639c"><div class="ttname"><a href="struct_token.html#a15eec7ad7fced0b21918e04a3e6c639c">Token::string_value</a></div><div class="ttdeci">std::string string_value</div><div class="ttdef"><b>Definition:</b> Token.h:58</div></div>
|
|
<div class="ttc" id="astruct_token_html_a2d401d11a0b5cb39e1505dbaf13fee82"><div class="ttname"><a href="struct_token.html#a2d401d11a0b5cb39e1505dbaf13fee82">Token::erase</a></div><div class="ttdeci">static void erase(Token &tk)</div><div class="ttdef"><b>Definition:</b> Token.cpp:184</div></div>
|
|
<div class="ttc" id="astruct_token_html_a33ccd4b1d4d4e2690a54f6ed39a7bf06"><div class="ttname"><a href="struct_token.html#a33ccd4b1d4d4e2690a54f6ed39a7bf06">Token::loc</a></div><div class="ttdeci">Location loc</div><div class="ttdef"><b>Definition:</b> Token.h:61</div></div>
|
|
<div class="ttc" id="astruct_token_html_a3d7d59eaac1535df1433357d5d372f84"><div class="ttname"><a href="struct_token.html#a3d7d59eaac1535df1433357d5d372f84">Token::~Token</a></div><div class="ttdeci">~Token()</div><div class="ttdef"><b>Definition:</b> Token.cpp:40</div></div>
|
|
<div class="ttc" id="astruct_token_html_a432fb89b5fed83bd753f99a5ea10e2e6"><div class="ttname"><a href="struct_token.html#a432fb89b5fed83bd753f99a5ea10e2e6">Token::line</a></div><div class="ttdeci">std::string line() const</div><div class="ttdef"><b>Definition:</b> Token.cpp:157</div></div>
|
|
<div class="ttc" id="astruct_token_html_a602aa1415de3415044205333495e72f5"><div class="ttname"><a href="struct_token.html#a602aa1415de3415044205333495e72f5">Token::to_string</a></div><div class="ttdeci">std::string to_string() const</div><div class="ttdef"><b>Definition:</b> Token.cpp:57</div></div>
|
|
<div class="ttc" id="astruct_token_html_a6c00b26185c109de4c2b79bd756defa1"><div class="ttname"><a href="struct_token.html#a6c00b26185c109de4c2b79bd756defa1">Token::make_with_line</a></div><div class="ttdeci">static Token make_with_line(const Token &origin, const std::string &line_text)</div><div class="ttdef"><b>Definition:</b> Token.cpp:162</div></div>
|
|
<div class="ttc" id="astruct_token_html_a92a5a00e9160db302b651c44c3658051"><div class="ttname"><a href="struct_token.html#a92a5a00e9160db302b651c44c3658051">Token::float_value</a></div><div class="ttdeci">float float_value</div><div class="ttdef"><b>Definition:</b> Token.h:59</div></div>
|
|
<div class="ttc" id="astruct_token_html_ab58cab5077c1c4c4671964595308c3fc"><div class="ttname"><a href="struct_token.html#ab58cab5077c1c4c4671964595308c3fc">Token::operator=</a></div><div class="ttdeci">void operator=(const Token &other)</div><div class="ttdef"><b>Definition:</b> Token.cpp:175</div></div>
|
|
<div class="ttc" id="astruct_token_html_ab74d6b5fef46e3c194229e7a884cad45"><div class="ttname"><a href="struct_token.html#ab74d6b5fef46e3c194229e7a884cad45">Token::Token</a></div><div class="ttdeci">Token(const TokenType &type)</div><div class="ttdef"><b>Definition:</b> Token.cpp:13</div></div>
|
|
<div class="ttc" id="astruct_token_html_afeecd45f0f912778b11fffe0abb299b5"><div class="ttname"><a href="struct_token.html#afeecd45f0f912778b11fffe0abb299b5">Token::tk_type</a></div><div class="ttdeci">TokenType tk_type</div><div class="ttdef"><b>Definition:</b> Token.h:55</div></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_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="_token_8h.html">Token.h</a></li>
|
|
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|