Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kifejezes:
- SZAM
- {
- $$ = new type(natural);
- }
- |
- AZONOSITO
- {
- $$ = new type(szimbolumtabla[*$1].var_type);
- }
- |
- kifejezes PLUSZ kifejezes
- {
- if( *$1 != *$3 || *$1 != natural )
- {
- std::stringstream ss;
- ss << "csak egesz lehet " << std::endl;
- error( ss.str().c_str() );
- }
- $$ = new type(natural);
- }
- |
- kifejezes MINUSZ kifejezes
- {
- if( *$1 != *$3 || *$1 != natural )
- {
- std::stringstream ss;
- ss << "csak egesz lehet " << std::endl;
- error( ss.str().c_str() );
- }
- $$ = new type(natural);
- }
- |
- kifejezes SZORZAS kifejezes
- {
- if( *$1 != *$3 || *$1 != natural )
- {
- std::stringstream ss;
- ss << "csak egesz lehet " << std::endl;
- error( ss.str().c_str() );
- }
- $$ = new type(natural);
- }
- |
- kifejezes OSZTAS kifejezes
- {
- if( *$1 != *$3 || *$1 != natural )
- {
- std::stringstream ss;
- ss << "csak egesz lehet " << std::endl;
- error( ss.str().c_str() );
- }
- $$ = new type(natural);
- }
- |
- kifejezes MARADEK kifejezes
- {
- if( *$1 != *$3 || *$1 != natural )
- {
- std::stringstream ss;
- ss << "csak egesz lehet " << std::endl;
- error( ss.str().c_str() );
- }
- $$ = new type(natural);
- }
- |
- kifejezes KISEBB kifejezes
- {
- if( *$1 != *$3 || *$1 != boolean )
- {
- std::stringstream ss;
- ss << "csak egesz lehet " << std::endl;
- error( ss.str().c_str() );
- }
- $$ = new type(boolean);
- }
- |
- kifejezes NAGYOBB kifejezes
- {
- if( *$1 != *$3 || *$1 != boolean )
- {
- std::stringstream ss;
- ss << "csak egesz lehet " << std::endl;
- error( ss.str().c_str() );
- }
- $$ = new type(boolean);
- }
- |
- kifejezes EGYENLO kifejezes
- {
- if( *$1 != *$3 )
- {
- std::stringstream ss;
- ss << "csak egesz lehet " << std::endl;
- error( ss.str().c_str() );
- }
- $$ = new type(boolean);
- }
- |
- kifejezes KISEBBEGYENLO kifejezes
- {
- if( *$1 != *$3 )
- {
- std::stringstream ss;
- ss << "csak egesz lehet " << std::endl;
- error( ss.str().c_str() );
- }
- $$ = new type(boolean);
- }
- |
- kifejezes NAGYOBBEGYENLO kifejezes
- {
- if( *$1 != *$3 )
- {
- std::stringstream ss;
- ss << "csak egesz lehet " << std::endl;
- error( ss.str().c_str() );
- }
- $$ = new type(boolean);
- }
- |
- kifejezes ES kifejezes
- {
- if( *$1 != *$3 || *$1 != boolean )
- {
- std::stringstream ss;
- ss << "csak egesz lehet " << std::endl;
- error( ss.str().c_str() );
- }
- $$ = new type(boolean);
- }
- |
- kifejezes VAGY kifejezes
- {
- if( *$1 != *$3 || *$1 != boolean )
- {
- std::stringstream ss;
- ss << "csak egesz lehet " << std::endl;
- error( ss.str().c_str() );
- }
- $$ = new type(boolean);
- }
- |
- NEM kifejezes
- {
- if( *$2 != boolean )
- {
- std::stringstream ss;
- ss << "csak egesz lehet " << std::endl;
- error( ss.str().c_str() );
- }
- $$ = new type(boolean);
- }
- |
- BALZAROJEL kifejezes JOBBZAROJEL
- {
- $$ = $2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement