4 <html xmlns="http://www.w3.org/1999/xhtml">
6 <meta charset="utf-8" />
7 <title>The bison_lr1dfa module — Ï€yacc documentation</title>
8 <link rel="stylesheet" href="_static/classic.css" type="text/css" />
9 <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
11 <script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
12 <script src="_static/jquery.js"></script>
13 <script src="_static/underscore.js"></script>
14 <script src="_static/doctools.js"></script>
15 <script src="_static/language_data.js"></script>
17 <link rel="index" title="Index" href="genindex.html" />
18 <link rel="search" title="Search" href="search.html" />
19 <link rel="next" title="The cli module" href="cli.html" />
20 <link rel="prev" title="The bisect_set module" href="bisect_set.html" />
22 <div class="related" role="navigation" aria-label="related navigation">
25 <li class="right" style="margin-right: 10px">
26 <a href="genindex.html" title="General Index"
27 accesskey="I">index</a></li>
29 <a href="py-modindex.html" title="Python Module Index"
32 <a href="cli.html" title="The cli module"
33 accesskey="N">next</a> |</li>
35 <a href="bisect_set.html" title="The bisect_set module"
36 accesskey="P">previous</a> |</li>
37 <li class="nav-item nav-item-0"><a href="index.html">Ï€yacc documentation</a> »</li>
41 <div class="document">
42 <div class="documentwrapper">
43 <div class="bodywrapper">
44 <div class="body" role="main">
46 <div class="section" id="module-ndcode.piyacc.bison_lr1dfa">
47 <span id="the-bison-lr1dfa-module"></span><h1>The <code class="docutils literal notranslate"><span class="pre">bison_lr1dfa</span></code> module<a class="headerlink" href="#module-ndcode.piyacc.bison_lr1dfa" title="Permalink to this headline">¶</a></h1>
48 <p>Module for constructing Bison-compatible automata. That is, automata that can
49 be executed using Bison’s default skeleton.</p>
51 <dt id="ndcode.piyacc.bison_lr1dfa.BisonLR1DFA">
52 <em class="property">class </em><code class="sig-prename descclassname">ndcode.piyacc.bison_lr1dfa.</code><code class="sig-name descname">BisonLR1DFA</code><span class="sig-paren">(</span><em class="sig-param">translate</em>, <em class="sig-param">rules</em>, <em class="sig-param">accessing_symbols</em>, <em class="sig-param">default_action</em>, <em class="sig-param">default_goto</em>, <em class="sig-param">entry_base</em>, <em class="sig-param">entries</em>, <em class="sig-param">action_pointer</em>, <em class="sig-param">goto_pointer</em>, <em class="sig-param">n_terminals</em><span class="sig-paren">)</span><a class="headerlink" href="#ndcode.piyacc.bison_lr1dfa.BisonLR1DFA" title="Permalink to this definition">¶</a></dt>
53 <dd><p>Class which holds a Bison-compatible automaton.</p>
54 <p>Normally all of the fields of the class are computed ahead of time by
55 <code class="docutils literal notranslate"><span class="pre">LR1DFA.to_bison_lr1dfa()</span></code> and then passed into the constructor here.</p>
56 <p>At the moment, this class doesn’t have any methods, it simply holds the data
57 which will be needed to populate a Bison skeleton. In the future we might add
58 methods for executing the automaton directly on a stream of lexical tokens.</p>
67 <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
68 <div class="sphinxsidebarwrapper">
69 <h4>Previous topic</h4>
70 <p class="topless"><a href="bisect_set.html"
71 title="previous chapter">The <code class="docutils literal notranslate"><span class="pre">bisect_set</span></code> module</a></p>
73 <p class="topless"><a href="cli.html"
74 title="next chapter">The <code class="docutils literal notranslate"><span class="pre">cli</span></code> module</a></p>
75 <div role="note" aria-label="source link">
77 <ul class="this-page-menu">
78 <li><a href="_sources/bison_lr1dfa.rst.txt"
79 rel="nofollow">Show Source</a></li>
82 <div id="searchbox" style="display: none" role="search">
83 <h3 id="searchlabel">Quick search</h3>
84 <div class="searchformwrapper">
85 <form class="search" action="search.html" method="get">
86 <input type="text" name="q" aria-labelledby="searchlabel" />
87 <input type="submit" value="Go" />
91 <script>$('#searchbox').show(0);</script>
94 <div class="clearer"></div>
96 <div class="related" role="navigation" aria-label="related navigation">
99 <li class="right" style="margin-right: 10px">
100 <a href="genindex.html" title="General Index"
103 <a href="py-modindex.html" title="Python Module Index"
106 <a href="cli.html" title="The cli module"
109 <a href="bisect_set.html" title="The bisect_set module"
111 <li class="nav-item nav-item-0"><a href="index.html">Ï€yacc documentation</a> »</li>
114 <div class="footer" role="contentinfo">
115 © Copyright 2020, NDCODE project.
116 Created using <a href="http://sphinx-doc.org/">Sphinx</a> 2.4.1.