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
fb27e1e34c5e68f7275b92cc869dbbc560cf7a82
Calculator/include/evaluator.h

11 lines
157 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"
addition: added arena library to this shit
2026-04-13 06:40:31 -06:00
#include "arena.h"
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
#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: 25ms 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