-
Notifications
You must be signed in to change notification settings - Fork 1
/
global.hpp
executable file
·30 lines (28 loc) · 1.2 KB
/
global.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef GLOBAL_HPP
#define GLOBAL_HPP
enum EerrorType {
CanNotOpenFile=1 ,CanNotReadFile ,
UnmatchComment,CanNotPointDuplicate,AfterPointShouldBeNumber,
AfterEShouldBeNumber , UnMathQuote,UnExpectedCharacter,
UnmatchParantes , UnExpectedToken , needTokenInParen,
AfterAssignShouldExpr , AfterStmtEndStmt, AfterExitNotExpr,
AfterCommaShouldName , OnlyNameExpectedPA,NameExpectedAfterComma,
ExprExpected ,UnExpectedUnary,TwoArgStmt,
MaxLineInProcedure ,NoStatementInProc,
UnExpectedEndInstr,UnExpectedInstruction,ControlVarTwoSame,
ExprssionNeeded,ThenNeeded,MaxOfWhen,
EndExpectedNoEOF ,EndExpectedNoLabel,
AssignExpectedInDoTo,NameOfConVarExpected,
ControlVarNotFound,LeaveShouldInLoop,
AfterLeaveOnlyName,AfterThenShouldStmt,InWhenThenNeeded,
AfterExposeShouldName,AfterSelectShouldEnd,
MaximumLengthOfNameError
};
enum bool{false, true};
void exitProgram(int );
void myDebugKey(long int, char *);
char *ahmadStrchr(char *s1,char charactersearch,int &Locatecharacter);
// same as " strchr " but in locate return the location of characterSearch
int ahmadStrcmp(char *s1,char *s2);
void edit( char * s , char * s1 , int l , int t , int r , int b );
#endif