257 lines
12 KiB
HTML
257 lines
12 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: Lexer Class 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="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('class_lexer.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="summary">
|
||
|
<a href="#pub-methods">Public Member Functions</a> |
|
||
|
<a href="#pub-static-methods">Static Public Member Functions</a> |
|
||
|
<a href="#pub-static-attribs">Static Public Attributes</a> |
|
||
|
<a href="class_lexer-members.html">List of all members</a> </div>
|
||
|
<div class="headertitle">
|
||
|
<div class="title">Lexer Class Reference</div> </div>
|
||
|
</div><!--header-->
|
||
|
<div class="contents">
|
||
|
|
||
|
<p><code>#include <<a class="el" href="_lexer_8h_source.html">Lexer.h</a>></code></p>
|
||
|
<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:ad26a84af23d8d303723e36e83fc4e556"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_lexer.html#ad26a84af23d8d303723e36e83fc4e556">~Lexer</a> ()</td></tr>
|
||
|
<tr class="separator:ad26a84af23d8d303723e36e83fc4e556"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ac53b63f829071be755cc785084126afe"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_lexer_8h.html#a43f892d4a347a32f8602cfbcff2e237e">TokenStream</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_lexer.html#ac53b63f829071be755cc785084126afe">lex</a> (const std::string &text)</td></tr>
|
||
|
<tr class="separator:ac53b63f829071be755cc785084126afe"><td class="memSeparator" colspan="2"> </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:a6d24d823847b6d5f7e497d78f5b612d4"><td class="memItemLeft" align="right" valign="top">static std::unique_ptr< <a class="el" href="class_lexer.html">Lexer</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="class_lexer.html#a6d24d823847b6d5f7e497d78f5b612d4">make_lexer</a> (const std::string &fname)</td></tr>
|
||
|
<tr class="separator:a6d24d823847b6d5f7e497d78f5b612d4"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a8f5d1d9281b44e287d7db2ef0c0dff09"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_lexer.html#a8f5d1d9281b44e287d7db2ef0c0dff09">assign_parent_location</a> (std::unique_ptr< <a class="el" href="class_lexer.html">Lexer</a> > &lexer, const std::shared_ptr< <a class="el" href="struct_location.html">Location</a> > &loc)</td></tr>
|
||
|
<tr class="separator:a8f5d1d9281b44e287d7db2ef0c0dff09"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
</table><table class="memberdecls">
|
||
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
|
||
|
Static Public Attributes</h2></td></tr>
|
||
|
<tr class="memitem:a8956f4484cb2a477bea5d09e96ea6c8d"><td class="memItemLeft" align="right" valign="top">static const std::array< std::string, <a class="el" href="_lexer_8h.html#a5aa140c2c2e64a57331d450a98077834">TYPE_COUNT</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="class_lexer.html#a8956f4484cb2a477bea5d09e96ea6c8d">types</a></td></tr>
|
||
|
<tr class="separator:a8956f4484cb2a477bea5d09e96ea6c8d"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
</table>
|
||
|
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||
|
<a id="ad26a84af23d8d303723e36e83fc4e556"></a>
|
||
|
<h2 class="memtitle"><span class="permalink"><a href="#ad26a84af23d8d303723e36e83fc4e556">◆ </a></span>~Lexer()</h2>
|
||
|
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">Lexer::~Lexer </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<h2 class="groupheader">Member Function Documentation</h2>
|
||
|
<a id="a8f5d1d9281b44e287d7db2ef0c0dff09"></a>
|
||
|
<h2 class="memtitle"><span class="permalink"><a href="#a8f5d1d9281b44e287d7db2ef0c0dff09">◆ </a></span>assign_parent_location()</h2>
|
||
|
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">void Lexer::assign_parent_location </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">std::unique_ptr< <a class="el" href="class_lexer.html">Lexer</a> > & </td>
|
||
|
<td class="paramname"><em>lexer</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">const std::shared_ptr< <a class="el" href="struct_location.html">Location</a> > & </td>
|
||
|
<td class="paramname"><em>loc</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a id="ac53b63f829071be755cc785084126afe"></a>
|
||
|
<h2 class="memtitle"><span class="permalink"><a href="#ac53b63f829071be755cc785084126afe">◆ </a></span>lex()</h2>
|
||
|
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="_lexer_8h.html#a43f892d4a347a32f8602cfbcff2e237e">TokenStream</a> Lexer::lex </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const std::string & </td>
|
||
|
<td class="paramname"><em>text</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a id="a6d24d823847b6d5f7e497d78f5b612d4"></a>
|
||
|
<h2 class="memtitle"><span class="permalink"><a href="#a6d24d823847b6d5f7e497d78f5b612d4">◆ </a></span>make_lexer()</h2>
|
||
|
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">std::unique_ptr< <a class="el" href="class_lexer.html">Lexer</a> > Lexer::make_lexer </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const std::string & </td>
|
||
|
<td class="paramname"><em>fname</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<h2 class="groupheader">Member Data Documentation</h2>
|
||
|
<a id="a8956f4484cb2a477bea5d09e96ea6c8d"></a>
|
||
|
<h2 class="memtitle"><span class="permalink"><a href="#a8956f4484cb2a477bea5d09e96ea6c8d">◆ </a></span>types</h2>
|
||
|
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">const std::array< std::string, <a class="el" href="_lexer_8h.html#a5aa140c2c2e64a57331d450a98077834">TYPE_COUNT</a> > Lexer::types</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
<b>Initial value:</b><div class="fragment"><div class="line">= {<span class="stringliteral">"void"</span>, <span class="stringliteral">"bool"</span>, <span class="stringliteral">"str"</span>, <span class="stringliteral">"i8"</span>, <span class="stringliteral">"i16"</span>, <span class="stringliteral">"i32"</span>, <span class="stringliteral">"i64"</span>,</div>
|
||
|
<div class="line"> <span class="stringliteral">"u8"</span>, <span class="stringliteral">"u16"</span>, <span class="stringliteral">"u32"</span>, <span class="stringliteral">"u64"</span>, <span class="stringliteral">"f32"</span>, <span class="stringliteral">"f64"</span>, <span class="stringliteral">"f128"</span>}</div>
|
||
|
</div><!-- fragment -->
|
||
|
</div>
|
||
|
</div>
|
||
|
<hr/>The documentation for this class was generated from the following files:<ul>
|
||
|
<li>src/<a class="el" href="_lexer_8h_source.html">Lexer.h</a></li>
|
||
|
<li>src/<a class="el" href="_lexer_8cpp.html">Lexer.cpp</a></li>
|
||
|
</ul>
|
||
|
</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="class_lexer.html">Lexer</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>
|