Skip to content

RightRegularGrammar a epsilon pravidlo u nepočátečního symbolu

Pro m_grammar typu RightRegularGrammar se podaří napsat:

        list<Symbol> leftSide = { ns.m_nonTerminal };
        list<Symbol> rightSide = { };
        m_grammar.addRule( Rule( leftSide, rightSide ) );

ačkoli ns.m_nonTerminal není počáteční symbol dané gramatiky!

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information