Logo
Explore Help
Sign In
laentropia/Calculator
1
0
Fork 0
You've already forked Calculator
Code Issues 3 Pull Requests Actions Packages Projects 1 Releases Wiki Activity
Files
ef8cf84456a70cd1376ab6ba72681472e0a50fe5
Calculator/include/evaluator.h

10 lines
138 B
C
Raw Normal View History

It works, basic but works, need to move out logic to places, like ASTNode array shouldn't be on the lexer or future logic for fractions and error handling in the evaluator. Just the things at the top of my head
2026-03-25 11:30:12 -06:00
#ifndef EVALUATOR_H
#define EVALUATOR_H
#include "lexer.h"
#include <stdint.h>
Fixed many minor things, tested it on main and is amazing, i think i need to start adding fractions next so further testing can be done with more powerful operators
2026-03-25 12:25:15 -06:00
int64_t evaluate(ASTNode *tree);
It works, basic but works, need to move out logic to places, like ASTNode array shouldn't be on the lexer or future logic for fractions and error handling in the evaluator. Just the things at the top of my head
2026-03-25 11:30:12 -06:00
#endif // !EVALUATOR_H
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 26ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API