Content deleted Content added
WOSlinkerBot (talk | contribs) m remove un-needed options from tables |
No edit summary |
||
Line 9:
* While not (Stack equals to $S and Input equals to $) (S = Initial symbol of the grammar)
** Search in the table the relationship between Top(stack) and NextToken(Input)
** if the relationship is
*** '''Shift''':
*** Push(Stack, relationship)
*** Push(Stack, NextToken(Input))
*** RemoveNextToken(Input)
** if the relationship is
*** '''Reduce''':
*** SearchProductionToReduce(Stack)
Line 23:
SearchProductionToReduce (Stack)
* search the '''Pivot''' in the stack the nearest
* search in the productions of the grammar which one have the same right side than the '''Pivot'''
Line 42:
{| class="wikitable"
! ||E|| E' ||
|-
! E
| || || || || ||
|-
! E'
| || || || || || || || ||
|-
! T
| || || || || ||
|-
! T'
| || || || || ||
|-
! F
| || || || || ||
|-
! +
| || ||⋖||≐||⋖|| || ||⋖|| ||⋖ ||
|-
! *
| || || || ||
|-
! (
|⋖||≐||⋖||⋖||⋖|| || ||⋖|| ||⋖ ||
|-
! )
| || || || || ||
|-
! num
| || || || || ||
|-
! $
|⋖|| ||⋖||⋖||⋖|| || ||⋖|| ||⋖ ||
|}
|