Lines Matching +full:single +full:- +full:tt

1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
14 <!-- #BeginDate format:En2m -->4-Oct-2010 05:13<!-- #EndDate -->
21 <li class="inline"><a href="#high-level">High-Level Description</a></li>
27 <p>The NTP configuration process is driven by a phrase-structure grammar which is used to specify t…
40 …<td>This file is a Bison source file that contains the phrase-structure grammar and the actions th…
52 … the configuration code. The most important function in this file is <tt>yylex</tt>, which is call…
68 <h4 id="high-level">High-Level Description</h4>
69 <p>A high-level description of the configuration process showing where all the files fit in is give…
76 <dt><tt>int yylex</tt>()</dt>
77tt>yylex</tt> for historical reasons; <tt>lex</tt> is a program that takes a set of regular expres…
78tt>char special_char[]</tt>. (The function <tt>int is_special(char ch)</tt>, can be used for this.…
79 <dt><tt>struct state *create_keyword_scanner(struct key_tok *<i>keyword_list</i>)</tt></dt>
82-defined structs, etc.), provided that these elements are allocated on the heap using the function…
83 <dt><tt>queue *create_priority_queue(int (*get_order)(void *, void*))</tt></dt>
84 …ts is determined by the <tt>get_order</tt><b> </b>function that is passed as input to the priority…
85 <dt><tt>queue *create_queue(void)</tt></dt>
86 …es a FIFO queue. It basically calls the <tt>create_priority_queue</tt> function with the <tt>get_f…
87 <dt><tt>void destroy_queue(queue *<i>my_queue</i>)</tt></dt>
88 …<dd>This function deletes <tt><i>my_queue</i></tt><b> </b>and frees up all the memory allocated to…
89 <dt><tt>int empty(queue *</tt><i><tt>my_queue</tt></i><tt>)</tt></dt>
90 …d>This function checks to see if <i><tt>my_queue</tt></i> is empty. Returns <tt>true</tt> if <tt><…
91 <dt><tt>queue *enqueue(queue *<i>my_queue</i>, void *<i>my_node</i>)</tt></dt>
92tt>my_node</tt></i>, to a queue, <i><tt>my_queue</tt></i>. <i><tt>my_node</tt></i> must be allocat…
93 <dt><tt>void *dequeue(queue *<i>my_queue</i>)</tt></dt>
95 <dt><tt>int get_no_of_elements(queue *<i>my_queue</i>)</tt></dt>
96 <dd>This function returns the number of elements in <tt><i>my_queue</i></tt>.</dd>
97 <dt><tt>void append_queue(queue *<i>q</i>1, queue *<i>q</i>2)</tt></dt>
98 …d>This function adds all the elements of <tt><i>q</i>2</tt> to <tt><i>q</i>1</tt>. The queue <tt><…
100 …tructured as a standard Bison file and consists of three main parts, separated by <tt>%%</tt>:</dd>
103 … declarations: This section contains a list of the terminal symbols, the non-terminal symbols and …
104-structure rules that are used to parse the configuration commands. Each rule consists of a left-h…
108 …ns) have to be declared in the prologue section. Note that terminals and non-terminals may have va…
109 <p class="style1"><tt>%union {<br>
121 }</tt></p>
123 <p><tt>%token T_Discard<br>
124 %token T_Dispersion</tt></p>
125tt>T_Double</tt> token is returned by the scanner whenever it sees a floating-point double in the …
126 <p><tt>%token &lt;Double&gt; T_Double </tt></p>
127 …e angled brackets is not <tt>double</tt> but <tt>Double</tt>, which is the name of the variable gi…
128-terminal symbols may also have values associated with them, which have types. This is because Bis…
129 <p><tt>%type &lt;Queue&gt; address_list<br>
130 %type &lt;Integer&gt; boolean</tt></p>
131 <p>The <tt>%type</tt> declaration may be omitted for non-terminals that do not return any value and…
133 <p>The rule section only consists of phrase-structure grammar rules. Each rule typically has the fo…
134 <p><tt>LHS : RHS [{ Actions }]<br>
135 &nbsp;&nbsp;&nbsp;&nbsp;;</tt></p>
136 …LHS consists of a single non-terminal symbol and the RHS consists of one or more terminal and non-
137 <p><tt>orphan_mode_command<br>
140 &nbsp;&nbsp;&nbsp;&nbsp;;</tt></p>
141 <p><tt>tos_option_list<br>
144 &nbsp;&nbsp;&nbsp;&nbsp;;</tt></p>
145tt>$n</tt> notation, where <tt>n</tt> is an integer, is used to refer to the value of a terminal o…
148 <p><tt>bison ntp_config.y</tt></p>
150-reduce errors or reduce-reduce errors, it means that the grammar specified using the rules in not…
151 <p><tt>bison -v ntp_config.y</tt></p>
156 …<li>Functions that have a <tt>create_</tt> prefix. These functions are used to build a node of the…
157 …<li>Functions that have a <tt>config_</tt> prefix. These functions are used to traverse the AST an…
162 …<li>Write phrase-structure grammar rules for the syntax of the new command. Add these rules to the…
164 …<li>If new reserved words are needed, add these to the <tt>struct key_tok keyword_list[]</tt>struc…
165 …<li>Specify the types of all the terminals and non-terminal symbols in the prologue section of the…
166 …on with a <tt>config_</tt> prefix that will be executed for this new command. Make sure this fun…