mirror of
https://github.com/sloven-c/calculator.git
synced 2025-10-30 12:27:25 +01:00
Initial commit
This commit is contained in:
24
structures.h
Normal file
24
structures.h
Normal file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// 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
|
||||
Reference in New Issue
Block a user