-
Notifications
You must be signed in to change notification settings - Fork 2
/
Po_semantics.h
33 lines (29 loc) · 1.25 KB
/
Po_semantics.h
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
31
32
33
#ifndef _PO_SEMANTICS_H_
#define _PO_SEMANTICS_H_
/*******************************************************************/
/*** FILE : Po_semantics.h ***/
/*** AUTHOR: Sekhar Muddana ***/
/*******************************************************************/
/* The following are the codes for operator */
#define INVALID_OPERATOR -1
#define SMALL_LETTER 0
#define SCALAR 1
#define UNARY_MINUS 2
#define UNARY_PLUS 3
#define ADDITION 4
#define SUBTRACTION 5
#define SCALAR_MULT 6
#define EXPONENTIATION 7
#define JORDAN_PROD 8
#define JUXT_PROD 9
#define COMMUTATION 10
#define ASSOCIATION 11
#define JACOBI 12
#define JORDAN_ASSOC 13
#define OPERATOR_PROD 14
#define LEFT_MULT 15
#define RIGHT_MULT 16
#define ARTIFICIAL_WORD 17
void Reduce_semantics(int Reduction_num, struct unexp_tnode *Sem_stack[], int *Sem_sp_ptr);
void Store_semantics(struct unexp_tnode *Sem_stack[], int Sem_sp, int Token, char Current_letter, int Current_int);
#endif