Académique Documents
Professionnel Documents
Culture Documents
<Decl> DT $
<Decl> DT ID <array> <init> <list>
<array> [ =
<array> [int_const] <array> | NULL <list> ID $
<init> NULL,= ID,$
<list> ID <array> <init> <list> | ; <init1> { ID $
<init> NULL | =<init1> <array- { ID,$
init>
<init1> <array_init> | ID <init> | <exp> <array- { NULL ID,$
<array_init> { <constant><constant_list>} more>
<constant- NULL , }
<constant_list> NULL | , <constant><constant_list> list>
Expression CFG :
<E> <B><E’>
<E’> || <B> <E’> | NULL
<B> <C> <B’>
<B’> && <C><B’> | NULL
<C> <A> <C’>
<C’> RO <A><C’> | NULL
<A> <T><A’>
<A’> NULL | ADDSUB<T><A’>
<T> <F><T’>
<T’> NULL | DIVMUL<F><T>| *<F><T’>
<F> ( E )|ID<member><F1>|INCDEC ID <member> | <constant>| *<m_st> ID | !<F>
<F1> NULL | INCDEC
<member> NULL | ID <member>| [E] <m-dim><member>| (<arg>)
<m-dim> NULL | [E] <m-dim>
<arg> NULL | E<m-arg>
<m-arg> NULL | , E<m-arg>
<m-st> NULL | *<m-st>
Element First Follow
SWITCH-CASE CFG :
Element First Follow
Switch- switch $
case
<switch-case> switch(ID)<body> body ; DT for $
<body> ; | {<m-Case_st>} <Defult> |<single_Case_St> while do
if switch
<single_Case_St> <s_st> | <case_st> INCDEC
ID case {
<case_st> case<IDConstant>: <m_st><break_st>
defult
<break_st>break;| NULL S_case_st_
IF-ELSE CFG :