sapphire/docs/html/structToken.html

149 lines
11 KiB
HTML
Raw Normal View History

2022-07-02 09:42:10 +00:00
<!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: Token Struct Reference</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="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" />
</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>
2022-07-02 09:49:51 +00:00
<div id="projectbrief">The Sapphire compiler</div>
2022-07-02 09:42:10 +00:00
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;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&amp;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>
<!-- 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><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structToken-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Token Struct Reference</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab74d6b5fef46e3c194229e7a884cad45"><td class="memItemLeft" align="right" valign="top"><a id="ab74d6b5fef46e3c194229e7a884cad45"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Token</b> (const TokenType &amp;type)</td></tr>
<tr class="separator:ab74d6b5fef46e3c194229e7a884cad45"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d4d66f172376503d15b9a2feb5f90e8"><td class="memItemLeft" align="right" valign="top"><a id="a6d4d66f172376503d15b9a2feb5f90e8"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Token</b> (const TokenType &amp;type, const <a class="el" href="structLocation.html">Location</a> &amp;location)</td></tr>
<tr class="separator:a6d4d66f172376503d15b9a2feb5f90e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2efe8a7168e6b2adac5d1cf6750daa7b"><td class="memItemLeft" align="right" valign="top"><a id="a2efe8a7168e6b2adac5d1cf6750daa7b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Token</b> (const TokenType &amp;type, const int &amp;val, const <a class="el" href="structLocation.html">Location</a> &amp;location)</td></tr>
<tr class="separator:a2efe8a7168e6b2adac5d1cf6750daa7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17f818bd7d9ff7472837307d09fb58fa"><td class="memItemLeft" align="right" valign="top"><a id="a17f818bd7d9ff7472837307d09fb58fa"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Token</b> (const TokenType &amp;type, const std::string &amp;val, const <a class="el" href="structLocation.html">Location</a> &amp;location)</td></tr>
<tr class="separator:a17f818bd7d9ff7472837307d09fb58fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad810ae05b8d953d481e1cbebb2964b17"><td class="memItemLeft" align="right" valign="top"><a id="ad810ae05b8d953d481e1cbebb2964b17"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Token</b> (const TokenType &amp;type, const std::string &amp;val)</td></tr>
<tr class="separator:ad810ae05b8d953d481e1cbebb2964b17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40f4b33a2ffd88acf803132d598c4ab4"><td class="memItemLeft" align="right" valign="top"><a id="a40f4b33a2ffd88acf803132d598c4ab4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Token</b> (const TokenType &amp;type, const float &amp;val, const <a class="el" href="structLocation.html">Location</a> &amp;location)</td></tr>
<tr class="separator:a40f4b33a2ffd88acf803132d598c4ab4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a602aa1415de3415044205333495e72f5"><td class="memItemLeft" align="right" valign="top"><a id="a602aa1415de3415044205333495e72f5"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>to_string</b> () const</td></tr>
<tr class="separator:a602aa1415de3415044205333495e72f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a432fb89b5fed83bd753f99a5ea10e2e6"><td class="memItemLeft" align="right" valign="top"><a id="a432fb89b5fed83bd753f99a5ea10e2e6"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>line</b> () const</td></tr>
<tr class="separator:a432fb89b5fed83bd753f99a5ea10e2e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab58cab5077c1c4c4671964595308c3fc"><td class="memItemLeft" align="right" valign="top"><a id="ab58cab5077c1c4c4671964595308c3fc"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="structToken.html">Token</a> &amp;other)</td></tr>
<tr class="separator:ab58cab5077c1c4c4671964595308c3fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a036d56315ccd55329e9e1e2271b16795"><td class="memItemLeft" align="right" valign="top"><a id="a036d56315ccd55329e9e1e2271b16795"></a>
<a class="el" href="structToken.html">Token</a>&#160;</td><td class="memItemRight" valign="bottom"><b>copy_with_new_type</b> (const TokenType &amp;type)</td></tr>
<tr class="separator:a036d56315ccd55329e9e1e2271b16795"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a6c00b26185c109de4c2b79bd756defa1"><td class="memItemLeft" align="right" valign="top"><a id="a6c00b26185c109de4c2b79bd756defa1"></a>
static <a class="el" href="structToken.html">Token</a>&#160;</td><td class="memItemRight" valign="bottom"><b>make_with_line</b> (const <a class="el" href="structToken.html">Token</a> &amp;origin, const std::string &amp;line_text)</td></tr>
<tr class="separator:a6c00b26185c109de4c2b79bd756defa1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d401d11a0b5cb39e1505dbaf13fee82"><td class="memItemLeft" align="right" valign="top"><a id="a2d401d11a0b5cb39e1505dbaf13fee82"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>erase</b> (<a class="el" href="structToken.html">Token</a> &amp;tk)</td></tr>
<tr class="separator:a2d401d11a0b5cb39e1505dbaf13fee82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0eaf331871c69faf7c37d8e87db1f7e6"><td class="memItemLeft" align="right" valign="top"><a id="a0eaf331871c69faf7c37d8e87db1f7e6"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>match_token_types</b> (const std::vector&lt; <a class="el" href="structToken.html">Token</a> &gt; &amp;a, const std::vector&lt; <a class="el" href="structToken.html">Token</a> &gt; &amp;b, int count)</td></tr>
<tr class="separator:a0eaf331871c69faf7c37d8e87db1f7e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:afeecd45f0f912778b11fffe0abb299b5"><td class="memItemLeft" align="right" valign="top"><a id="afeecd45f0f912778b11fffe0abb299b5"></a>
TokenType&#160;</td><td class="memItemRight" valign="bottom"><b>tk_type</b></td></tr>
<tr class="separator:afeecd45f0f912778b11fffe0abb299b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0bd1ec80054e52bb87e5f5c4fd2f6931"><td class="memItemLeft" align="right" valign="top"><a id="a0bd1ec80054e52bb87e5f5c4fd2f6931"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>int_value</b></td></tr>
<tr class="separator:a0bd1ec80054e52bb87e5f5c4fd2f6931"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15eec7ad7fced0b21918e04a3e6c639c"><td class="memItemLeft" align="right" valign="top"><a id="a15eec7ad7fced0b21918e04a3e6c639c"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>string_value</b></td></tr>
<tr class="separator:a15eec7ad7fced0b21918e04a3e6c639c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92a5a00e9160db302b651c44c3658051"><td class="memItemLeft" align="right" valign="top"><a id="a92a5a00e9160db302b651c44c3658051"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>float_value</b></td></tr>
<tr class="separator:a92a5a00e9160db302b651c44c3658051"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33ccd4b1d4d4e2690a54f6ed39a7bf06"><td class="memItemLeft" align="right" valign="top"><a id="a33ccd4b1d4d4e2690a54f6ed39a7bf06"></a>
<a class="el" href="structLocation.html">Location</a>&#160;</td><td class="memItemRight" valign="bottom"><b>loc</b></td></tr>
<tr class="separator:a33ccd4b1d4d4e2690a54f6ed39a7bf06"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<hr/>The documentation for this struct was generated from the following files:<ul>
<li>src/<a class="el" href="Token_8h_source.html">Token.h</a></li>
<li>src/Token.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>