IamTheCarl / CommandCAD

A script driven CAD program with dimensional analysis.
GNU Affero General Public License v3.0
16 stars 0 forks source link

Parser Overhaul #3

Open IamTheCarl opened 2 months ago

IamTheCarl commented 2 months ago

Goals and reasoning

The current design of the parser produces unusable error messages and is awkward to extend. A redesign is called for. It needs to support (or be easy to add) the following features:

New design overview

The following layers should be used to process input files.

This design should simplify the creation of higher level structures and the reporting of error messages related to them. It should also make it much easier to write a formatter later.