ShadelessFox / lang

A toy language I'm making in my spare time.
2 stars 0 forks source link

Debloat assembler #30

Closed ShadelessFox closed 3 years ago

ShadelessFox commented 3 years ago

Currently Assembler class is filled with bunch of useful and not very useful things that are not related to emitted assembly itself: source location information for tracing/debugging and guard regions. These things can be moved to Context class.

ShadelessFox commented 3 years ago

Source location information depends on assembler's instructions, so it must stay the part of it.