Blame view

circus/javadoc/java_cup/lalr_item.html 28.6 KB
8d0dc533f   Madiel de Souza Conserva Filho   first
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  <!--NewPage-->
  <HTML>
  <HEAD>
  <!-- Generated by javadoc (build 1.5.0_01) on Mon Apr 23 21:09:00 GMT 2007 -->
  <TITLE>
  lalr_item
  </TITLE>
  
  <META NAME="keywords" CONTENT="java_cup.lalr_item class">
  
  <LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
  
  <SCRIPT type="text/javascript">
  function windowTitle()
  {
      parent.document.title="lalr_item";
  }
  </SCRIPT>
  <NOSCRIPT>
  </NOSCRIPT>
  
  </HEAD>
  
  <BODY BGCOLOR="white" onload="windowTitle();">
  
  
  <!-- ========= START OF TOP NAVBAR ======= -->
  <A NAME="navbar_top"><!-- --></A>
  <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  <TR>
  <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  <A NAME="navbar_top_firstrow"><!-- --></A>
  <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
    <TR ALIGN="center" VALIGN="top">
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/lalr_item.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
    </TR>
  </TABLE>
  </TD>
  <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  </EM>
  </TD>
  </TR>
  
  <TR>
  <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  &nbsp;<A HREF="../java_cup/internal_error.html" title="class in java_cup"><B>PREV CLASS</B></A>&nbsp;
  &nbsp;<A HREF="../java_cup/lalr_item_set.html" title="class in java_cup"><B>NEXT CLASS</B></A></FONT></TD>
  <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
    <A HREF="../index.html?java_cup/lalr_item.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  &nbsp;<A HREF="lalr_item.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
  &nbsp;<SCRIPT type="text/javascript">
    <!--
    if(window==top) {
      document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
    }
    //-->
  </SCRIPT>
  <NOSCRIPT>
    <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
  </NOSCRIPT>
  
  
  </FONT></TD>
  </TR>
  <TR>
  <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
    SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  </TR>
  </TABLE>
  <A NAME="skip-navbar_top"></A>
  <!-- ========= END OF TOP NAVBAR ========= -->
  
  <HR>
  <!-- ======== START OF CLASS DATA ======== -->
  <H2>
  <FONT SIZE="-1">
  java_cup</FONT>
  <BR>
  Class lalr_item</H2>
  <PRE>
  java.lang.Object
    <IMG SRC="../resources/inherit.gif" ALT="extended by "><A HREF="../java_cup/lr_item_core.html" title="class in java_cup">java_cup.lr_item_core</A>
        <IMG SRC="../resources/inherit.gif" ALT="extended by "><B>java_cup.lalr_item</B>
  </PRE>
  <HR>
  <DL>
  <DT><PRE>public class <B>lalr_item</B><DT>extends <A HREF="../java_cup/lr_item_core.html" title="class in java_cup">lr_item_core</A></DL>
  </PRE>
  
  <P>
  This class represents an LALR item. Each LALR item consists of 
    a production, a "dot" at a position within that production, and
    a set of lookahead symbols (terminal).  (The first two of these parts
    are provide by the super class).  An item is designed to represent a 
    configuration that the parser may be in.  For example, an item of the 
    form: <pre>
      [A ::= B * C d E  , {a,b,c}]
    </pre>
    indicates that the parser is in the middle of parsing the production <pre>
      A ::= B C d E
    </pre>
    that B has already been parsed, and that we will expect to see a lookahead 
    of either a, b, or c once the complete RHS of this production has been 
    found.<p>
  
    Items may initially be missing some items from their lookahead sets.  
    Links are maintained from each item to the set of items that would need 
    to be updated if symbols are added to its lookahead set.  During 
    "lookahead propagation", we add symbols to various lookahead sets and 
    propagate these changes across these dependency links as needed.
  <P>
  
  <P>
  <DL>
  <DT><B>Version:</B></DT>
    <DD>last updated: 11/25/95</DD>
  <DT><B>Author:</B></DT>
    <DD>Scott Hudson</DD>
  <DT><B>See Also:</B><DD><A HREF="../java_cup/lalr_item_set.html" title="class in java_cup"><CODE>lalr_item_set</CODE></A>, 
  <A HREF="../java_cup/lalr_state.html" title="class in java_cup"><CODE>lalr_state</CODE></A></DL>
  <HR>
  
  <P>
  <!-- =========== FIELD SUMMARY =========== -->
  
  <A NAME="field_summary"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  <B>Field Summary</B></FONT></TH>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>protected &nbsp;<A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A></CODE></FONT></TD>
  <TD><CODE><B><A HREF="../java_cup/lalr_item.html#_lookahead">_lookahead</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The lookahead symbols of the item.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>protected &nbsp;java.util.Stack</CODE></FONT></TD>
  <TD><CODE><B><A HREF="../java_cup/lalr_item.html#_propagate_items">_propagate_items</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Links to items that the lookahead needs to be propagated to.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>protected &nbsp;boolean</CODE></FONT></TD>
  <TD><CODE><B><A HREF="../java_cup/lalr_item.html#needs_propagation">needs_propagation</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flag to indicate that this item needs to propagate its lookahead 
    (whether it has changed or not).</TD>
  </TR>
  </TABLE>
  &nbsp;<A NAME="fields_inherited_from_class_java_cup.lr_item_core"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  <TH ALIGN="left"><B>Fields inherited from class java_cup.<A HREF="../java_cup/lr_item_core.html" title="class in java_cup">lr_item_core</A></B></TH>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD><CODE><A HREF="../java_cup/lr_item_core.html#_core_hash_cache">_core_hash_cache</A>, <A HREF="../java_cup/lr_item_core.html#_dot_pos">_dot_pos</A>, <A HREF="../java_cup/lr_item_core.html#_symbol_after_dot">_symbol_after_dot</A>, <A HREF="../java_cup/lr_item_core.html#_the_production">_the_production</A></CODE></TD>
  </TR>
  </TABLE>
  &nbsp;
  <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  
  <A NAME="constructor_summary"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  <B>Constructor Summary</B></FONT></TH>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD><CODE><B><A HREF="../java_cup/lalr_item.html#lalr_item(java_cup.production)">lalr_item</A></B>(<A HREF="../java_cup/production.html" title="class in java_cup">production</A>&nbsp;prod)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor with default position and empty lookahead set.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD><CODE><B><A HREF="../java_cup/lalr_item.html#lalr_item(java_cup.production, int, java_cup.terminal_set)">lalr_item</A></B>(<A HREF="../java_cup/production.html" title="class in java_cup">production</A>&nbsp;prod,
            int&nbsp;pos,
            <A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A>&nbsp;look)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Full constructor.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD><CODE><B><A HREF="../java_cup/lalr_item.html#lalr_item(java_cup.production, java_cup.terminal_set)">lalr_item</A></B>(<A HREF="../java_cup/production.html" title="class in java_cup">production</A>&nbsp;prod,
            <A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A>&nbsp;look)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor with default position (dot at start).</TD>
  </TR>
  </TABLE>
  &nbsp;
  <!-- ========== METHOD SUMMARY =========== -->
  
  <A NAME="method_summary"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  <B>Method Summary</B></FONT></TH>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;void</CODE></FONT></TD>
  <TD><CODE><B><A HREF="../java_cup/lalr_item.html#add_propagate(java_cup.lalr_item)">add_propagate</A></B>(<A HREF="../java_cup/lalr_item.html" title="class in java_cup">lalr_item</A>&nbsp;prop_to)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a new item to the set of items we propagate to.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;<A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A></CODE></FONT></TD>
  <TD><CODE><B><A HREF="../java_cup/lalr_item.html#calc_lookahead(java_cup.terminal_set)">calc_lookahead</A></B>(<A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A>&nbsp;lookahead_after)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calculate lookahead representing symbols that could appear after the
     symbol that the dot is currently in front of.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;boolean</CODE></FONT></TD>
  <TD><CODE><B><A HREF="../java_cup/lalr_item.html#equals(java_cup.lalr_item)">equals</A></B>(<A HREF="../java_cup/lalr_item.html" title="class in java_cup">lalr_item</A>&nbsp;other)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equality comparison -- here we only require the cores to be equal since
     we need to do sets of items based only on core equality (ignoring 
     lookahead sets).</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;boolean</CODE></FONT></TD>
  <TD><CODE><B><A HREF="../java_cup/lalr_item.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object&nbsp;other)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generic equality comparison.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;int</CODE></FONT></TD>
  <TD><CODE><B><A HREF="../java_cup/lalr_item.html#hashCode()">hashCode</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a hash code -- here we only hash the core since we only test core
    matching in LALR items.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;boolean</CODE></FONT></TD>
  <TD><CODE><B><A HREF="../java_cup/lalr_item.html#lookahead_visible()">lookahead_visible</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determine if everything from the symbol one beyond the dot all the 
    way to the  end of the right hand side is nullable.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;<A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A></CODE></FONT></TD>
  <TD><CODE><B><A HREF="../java_cup/lalr_item.html#lookahead()">lookahead</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The lookahead symbols of the item.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;java.util.Stack</CODE></FONT></TD>
  <TD><CODE><B><A HREF="../java_cup/lalr_item.html#propagate_items()">propagate_items</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Links to items that the lookahead needs to be propagated to</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;void</CODE></FONT></TD>
  <TD><CODE><B><A HREF="../java_cup/lalr_item.html#propagate_lookaheads(java_cup.terminal_set)">propagate_lookaheads</A></B>(<A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A>&nbsp;incoming)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Propagate incoming lookaheads through this item to others need to 
    be changed.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;<A HREF="../java_cup/lalr_item.html" title="class in java_cup">lalr_item</A></CODE></FONT></TD>
  <TD><CODE><B><A HREF="../java_cup/lalr_item.html#shift()">shift</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Produce the new lalr_item that results from shifting the dot one position
    to the right.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A HREF="../java_cup/lalr_item.html#toString()">toString</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convert to string.</TD>
  </TR>
  </TABLE>
  &nbsp;<A NAME="methods_inherited_from_class_java_cup.lr_item_core"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  <TH ALIGN="left"><B>Methods inherited from class java_cup.<A HREF="../java_cup/lr_item_core.html" title="class in java_cup">lr_item_core</A></B></TH>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD><CODE><A HREF="../java_cup/lr_item_core.html#core_equals(java_cup.lr_item_core)">core_equals</A>, <A HREF="../java_cup/lr_item_core.html#core_hashCode()">core_hashCode</A>, <A HREF="../java_cup/lr_item_core.html#dot_at_end()">dot_at_end</A>, <A HREF="../java_cup/lr_item_core.html#dot_before_nt()">dot_before_nt</A>, <A HREF="../java_cup/lr_item_core.html#dot_pos()">dot_pos</A>, <A HREF="../java_cup/lr_item_core.html#equals(java_cup.lr_item_core)">equals</A>, <A HREF="../java_cup/lr_item_core.html#obj_hash()">obj_hash</A>, <A HREF="../java_cup/lr_item_core.html#shift_core()">shift_core</A>, <A HREF="../java_cup/lr_item_core.html#symbol_after_dot()">symbol_after_dot</A>, <A HREF="../java_cup/lr_item_core.html#the_production()">the_production</A>, <A HREF="../java_cup/lr_item_core.html#to_simple_string()">to_simple_string</A></CODE></TD>
  </TR>
  </TABLE>
  &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD><CODE>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
  </TR>
  </TABLE>
  &nbsp;
  <P>
  
  <!-- ============ FIELD DETAIL =========== -->
  
  <A NAME="field_detail"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  <B>Field Detail</B></FONT></TH>
  </TR>
  </TABLE>
  
  <A NAME="_lookahead"><!-- --></A><H3>
  _lookahead</H3>
  <PRE>
  protected <A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A> <B>_lookahead</B></PRE>
  <DL>
  <DD>The lookahead symbols of the item.
  <P>
  <DL>
  </DL>
  </DL>
  <HR>
  
  <A NAME="_propagate_items"><!-- --></A><H3>
  _propagate_items</H3>
  <PRE>
  protected java.util.Stack <B>_propagate_items</B></PRE>
  <DL>
  <DD>Links to items that the lookahead needs to be propagated to.
  <P>
  <DL>
  </DL>
  </DL>
  <HR>
  
  <A NAME="needs_propagation"><!-- --></A><H3>
  needs_propagation</H3>
  <PRE>
  protected boolean <B>needs_propagation</B></PRE>
  <DL>
  <DD>Flag to indicate that this item needs to propagate its lookahead 
    (whether it has changed or not).
  <P>
  <DL>
  </DL>
  </DL>
  
  <!-- ========= CONSTRUCTOR DETAIL ======== -->
  
  <A NAME="constructor_detail"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  <B>Constructor Detail</B></FONT></TH>
  </TR>
  </TABLE>
  
  <A NAME="lalr_item(java_cup.production, int, java_cup.terminal_set)"><!-- --></A><H3>
  lalr_item</H3>
  <PRE>
  public <B>lalr_item</B>(<A HREF="../java_cup/production.html" title="class in java_cup">production</A>&nbsp;prod,
                   int&nbsp;pos,
                   <A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A>&nbsp;look)
            throws <A HREF="../java_cup/internal_error.html" title="class in java_cup">internal_error</A></PRE>
  <DL>
  <DD>Full constructor.
  <P>
  <DL>
  <DT><B>Parameters:</B><DD><CODE>prod</CODE> - the production for the item.<DD><CODE>pos</CODE> - the position of the "dot" within the production.<DD><CODE>look</CODE> - the set of lookahead symbols.
  <DT><B>Throws:</B>
  <DD><CODE><A HREF="../java_cup/internal_error.html" title="class in java_cup">internal_error</A></CODE></DL>
  </DL>
  <HR>
  
  <A NAME="lalr_item(java_cup.production, java_cup.terminal_set)"><!-- --></A><H3>
  lalr_item</H3>
  <PRE>
  public <B>lalr_item</B>(<A HREF="../java_cup/production.html" title="class in java_cup">production</A>&nbsp;prod,
                   <A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A>&nbsp;look)
            throws <A HREF="../java_cup/internal_error.html" title="class in java_cup">internal_error</A></PRE>
  <DL>
  <DD>Constructor with default position (dot at start).
  <P>
  <DL>
  <DT><B>Parameters:</B><DD><CODE>prod</CODE> - the production for the item.<DD><CODE>look</CODE> - the set of lookahead symbols.
  <DT><B>Throws:</B>
  <DD><CODE><A HREF="../java_cup/internal_error.html" title="class in java_cup">internal_error</A></CODE></DL>
  </DL>
  <HR>
  
  <A NAME="lalr_item(java_cup.production)"><!-- --></A><H3>
  lalr_item</H3>
  <PRE>
  public <B>lalr_item</B>(<A HREF="../java_cup/production.html" title="class in java_cup">production</A>&nbsp;prod)
            throws <A HREF="../java_cup/internal_error.html" title="class in java_cup">internal_error</A></PRE>
  <DL>
  <DD>Constructor with default position and empty lookahead set.
  <P>
  <DL>
  <DT><B>Parameters:</B><DD><CODE>prod</CODE> - the production for the item.
  <DT><B>Throws:</B>
  <DD><CODE><A HREF="../java_cup/internal_error.html" title="class in java_cup">internal_error</A></CODE></DL>
  </DL>
  
  <!-- ============ METHOD DETAIL ========== -->
  
  <A NAME="method_detail"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  <B>Method Detail</B></FONT></TH>
  </TR>
  </TABLE>
  
  <A NAME="lookahead()"><!-- --></A><H3>
  lookahead</H3>
  <PRE>
  public <A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A> <B>lookahead</B>()</PRE>
  <DL>
  <DD>The lookahead symbols of the item.
  <P>
  <DD><DL>
  </DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="propagate_items()"><!-- --></A><H3>
  propagate_items</H3>
  <PRE>
  public java.util.Stack <B>propagate_items</B>()</PRE>
  <DL>
  <DD>Links to items that the lookahead needs to be propagated to
  <P>
  <DD><DL>
  </DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="add_propagate(java_cup.lalr_item)"><!-- --></A><H3>
  add_propagate</H3>
  <PRE>
  public void <B>add_propagate</B>(<A HREF="../java_cup/lalr_item.html" title="class in java_cup">lalr_item</A>&nbsp;prop_to)</PRE>
  <DL>
  <DD>Add a new item to the set of items we propagate to.
  <P>
  <DD><DL>
  </DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="propagate_lookaheads(java_cup.terminal_set)"><!-- --></A><H3>
  propagate_lookaheads</H3>
  <PRE>
  public void <B>propagate_lookaheads</B>(<A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A>&nbsp;incoming)
                            throws <A HREF="../java_cup/internal_error.html" title="class in java_cup">internal_error</A></PRE>
  <DL>
  <DD>Propagate incoming lookaheads through this item to others need to 
    be changed.
  <P>
  <DD><DL>
  
  <DT><B>Throws:</B>
  <DD><CODE><A HREF="../java_cup/internal_error.html" title="class in java_cup">internal_error</A></CODE></DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="shift()"><!-- --></A><H3>
  shift</H3>
  <PRE>
  public <A HREF="../java_cup/lalr_item.html" title="class in java_cup">lalr_item</A> <B>shift</B>()
                  throws <A HREF="../java_cup/internal_error.html" title="class in java_cup">internal_error</A></PRE>
  <DL>
  <DD>Produce the new lalr_item that results from shifting the dot one position
    to the right.
  <P>
  <DD><DL>
  
  <DT><B>Throws:</B>
  <DD><CODE><A HREF="../java_cup/internal_error.html" title="class in java_cup">internal_error</A></CODE></DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="calc_lookahead(java_cup.terminal_set)"><!-- --></A><H3>
  calc_lookahead</H3>
  <PRE>
  public <A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A> <B>calc_lookahead</B>(<A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A>&nbsp;lookahead_after)
                              throws <A HREF="../java_cup/internal_error.html" title="class in java_cup">internal_error</A></PRE>
  <DL>
  <DD>Calculate lookahead representing symbols that could appear after the
     symbol that the dot is currently in front of.  Note: this routine must
     not be invoked before first sets and nullability has been calculated
     for all non terminals.
  <P>
  <DD><DL>
  
  <DT><B>Throws:</B>
  <DD><CODE><A HREF="../java_cup/internal_error.html" title="class in java_cup">internal_error</A></CODE></DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="lookahead_visible()"><!-- --></A><H3>
  lookahead_visible</H3>
  <PRE>
  public boolean <B>lookahead_visible</B>()
                            throws <A HREF="../java_cup/internal_error.html" title="class in java_cup">internal_error</A></PRE>
  <DL>
  <DD>Determine if everything from the symbol one beyond the dot all the 
    way to the  end of the right hand side is nullable.  This would indicate
    that the lookahead of this item must be included in the lookaheads of
    all items produced as a closure of this item.  Note: this routine should 
    not be invoked until after first sets and nullability have been 
    calculated for all non terminals.
  <P>
  <DD><DL>
  
  <DT><B>Throws:</B>
  <DD><CODE><A HREF="../java_cup/internal_error.html" title="class in java_cup">internal_error</A></CODE></DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="equals(java_cup.lalr_item)"><!-- --></A><H3>
  equals</H3>
  <PRE>
  public boolean <B>equals</B>(<A HREF="../java_cup/lalr_item.html" title="class in java_cup">lalr_item</A>&nbsp;other)</PRE>
  <DL>
  <DD>Equality comparison -- here we only require the cores to be equal since
     we need to do sets of items based only on core equality (ignoring 
     lookahead sets).
  <P>
  <DD><DL>
  </DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="equals(java.lang.Object)"><!-- --></A><H3>
  equals</H3>
  <PRE>
  public boolean <B>equals</B>(java.lang.Object&nbsp;other)</PRE>
  <DL>
  <DD>Generic equality comparison.
  <P>
  <DD><DL>
  <DT><B>Overrides:</B><DD><CODE><A HREF="../java_cup/lr_item_core.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../java_cup/lr_item_core.html" title="class in java_cup">lr_item_core</A></CODE></DL>
  </DD>
  <DD><DL>
  </DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="hashCode()"><!-- --></A><H3>
  hashCode</H3>
  <PRE>
  public int <B>hashCode</B>()</PRE>
  <DL>
  <DD>Return a hash code -- here we only hash the core since we only test core
    matching in LALR items.
  <P>
  <DD><DL>
  <DT><B>Overrides:</B><DD><CODE><A HREF="../java_cup/lr_item_core.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../java_cup/lr_item_core.html" title="class in java_cup">lr_item_core</A></CODE></DL>
  </DD>
  <DD><DL>
  </DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="toString()"><!-- --></A><H3>
  toString</H3>
  <PRE>
  public java.lang.String <B>toString</B>()</PRE>
  <DL>
  <DD>Convert to string.
  <P>
  <DD><DL>
  <DT><B>Overrides:</B><DD><CODE><A HREF="../java_cup/lr_item_core.html#toString()">toString</A></CODE> in class <CODE><A HREF="../java_cup/lr_item_core.html" title="class in java_cup">lr_item_core</A></CODE></DL>
  </DD>
  <DD><DL>
  </DL>
  </DD>
  </DL>
  <!-- ========= END OF CLASS DATA ========= -->
  <HR>
  
  
  <!-- ======= START OF BOTTOM NAVBAR ====== -->
  <A NAME="navbar_bottom"><!-- --></A>
  <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  <TR>
  <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  <A NAME="navbar_bottom_firstrow"><!-- --></A>
  <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
    <TR ALIGN="center" VALIGN="top">
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/lalr_item.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
    </TR>
  </TABLE>
  </TD>
  <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  </EM>
  </TD>
  </TR>
  
  <TR>
  <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  &nbsp;<A HREF="../java_cup/internal_error.html" title="class in java_cup"><B>PREV CLASS</B></A>&nbsp;
  &nbsp;<A HREF="../java_cup/lalr_item_set.html" title="class in java_cup"><B>NEXT CLASS</B></A></FONT></TD>
  <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
    <A HREF="../index.html?java_cup/lalr_item.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  &nbsp;<A HREF="lalr_item.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
  &nbsp;<SCRIPT type="text/javascript">
    <!--
    if(window==top) {
      document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
    }
    //-->
  </SCRIPT>
  <NOSCRIPT>
    <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
  </NOSCRIPT>
  
  
  </FONT></TD>
  </TR>
  <TR>
  <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
    SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  </TR>
  </TABLE>
  <A NAME="skip-navbar_bottom"></A>
  <!-- ======== END OF BOTTOM NAVBAR ======= -->
  
  <HR>
  
  </BODY>
  </HTML>