It would be nice if they could do symbols.baudRate = 9600 instead of define("baudRate", 9600)
It would be more idiomatic JS to use this. rather than symbols. - and that might be easier to implement.
The assignment code would need to work out which section of the symbol table the symbol belongs in.
Whilst working on this, it might be nice to enable the user to put functions in the symbol table too... which would effectively allow them to make their own directives... so the could do something like
It would be nice if they could do
symbols.baudRate = 9600instead ofdefine("baudRate", 9600)It would be more idiomatic JS to use
this.rather thansymbols.- and that might be easier to implement.The assignment code would need to work out which section of the symbol table the symbol belongs in.
Whilst working on this, it might be nice to enable the user to put functions in the symbol table too... which would effectively allow them to make their own directives... so the could do something like