Last active
April 17, 2018 10:25
-
-
Save KeKsBoTer/fd7b4bfc6ba8cdd8c562976c435be5c9 to your computer and use it in GitHub Desktop.
Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void S(){ | |
SCANNER(x); | |
if(x!=id) | |
error(); | |
SCANNER(x); | |
P(); | |
} | |
void P(){ | |
SCANNER(x); | |
if(x!=obr) | |
error(); | |
do{ | |
SCANNER(x); | |
if(x == id){ | |
SCANNER(x); | |
if(x == obr) | |
P(); | |
else if(x == plus || x == minus) | |
A(); | |
} | |
else if(x == num){ | |
SCANNER(x); | |
if(x == plus || x == minus) | |
A(); | |
}else{ | |
error(); | |
} | |
}while(x == com); | |
if(x!=cbr){ | |
error(); | |
} | |
} | |
void A(){ | |
if(x != plus && x != minus) | |
error(); | |
do{ | |
SCANNER(x); | |
if(x!=id && id!=num) | |
error(); | |
SCANNER(x); | |
}while(x == plus && x == minus) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment