Error handling for evaluator #4

Closed
opened 2026-03-27 01:23:49 +00:00 by laentropia · 0 comments
Owner

What?

Right now the evaluator doensn't return any kind of error, and it should, lexer returns sytaxsis errors but the evaluator would return mathematical errors, things like division by 0. Right now there are just a few implemented operators so division by 0 is the only real concern, however, if we are planing on adding more operators or even built-in funcitions this will need to be handled later.

# What? Right now the evaluator doensn't return any kind of error, and it should, lexer returns sytaxsis errors but the evaluator would return mathematical errors, things like division by 0. Right now there are just a few implemented operators so division by 0 is the only real concern, however, if we are planing on adding more operators or even built-in funcitions this will need to be handled later.
laentropia added this to the (deleted) project 2026-03-27 01:23:49 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
laentropia/Calculator#4
No description provided.