Skip to content

Rework: Part by Part Parsing/Visualizing #7

Description

@Mutilar

Instead of stepping and switching by line, the interpreter would be more accurate and visually educational if it stepped per part of each line.

e.g.

if (x + 5 == 7) {

would first fetch any variable values from memory (an EEPROM):

if (2 + 5 == 7) {

then step through PEMDAS if need-be:

if (7 == 7) {

and lastly the evaluation (which is still in PEMDAS technically...):

if (true) {

This simplified "if true" would then be passed into the original interpreter to control scope and flow control (see ScopeHandler).

It gets more complicated with function calls mid-line, but this is where the current interpreter fails. Thus, this is an imperative to-do to allow for as versatile code inputs as possible.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions