mirror of
				https://github.com/sloven-c/calculator.git
				synced 2025-11-04 14:17:23 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			338 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			338 B
		
	
	
	
		
			C
		
	
	
	
	
	
//
 | 
						|
// Created by marto on 25. 10. 25.
 | 
						|
//
 | 
						|
 | 
						|
#ifndef CALCULATOR_STRUCTURES_H
 | 
						|
#define CALCULATOR_STRUCTURES_H
 | 
						|
 | 
						|
typedef enum {
 | 
						|
    Digit,
 | 
						|
    Operator,
 | 
						|
    Invalid,
 | 
						|
} charType;
 | 
						|
 | 
						|
typedef struct {
 | 
						|
    charType type;
 | 
						|
    int opPrecedence;
 | 
						|
} charResult;
 | 
						|
 | 
						|
typedef struct {
 | 
						|
    char *string;
 | 
						|
    int len;
 | 
						|
} string;
 | 
						|
 | 
						|
#endif //CALCULATOR_STRUCTURES_H
 |