mirror of
https://github.com/sloven-c/calculator.git
synced 2025-10-30 12:27:25 +01:00
25 lines
341 B
C
25 lines
341 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;
|
|
size_t opPrecedence;
|
|
} charResult;
|
|
|
|
typedef struct {
|
|
char *string;
|
|
int len;
|
|
} string;
|
|
|
|
#endif //CALCULATOR_STRUCTURES_H
|