4 ms·
You don't have to treat everything as a string. I've written a Tcl interpreter in VHDL and it avoids the traditional pre 8.0 string interpretation. It parses ev
by kevin_thibedeau 10y ago
You don't have to treat everything as a string. I've written a Tcl interpreter in VHDL and it avoids the traditional pre 8.0 string interpretation. It parses everything into an AST and interprets that instead. This saves on the overhead of string processing mostly static code inside another interpreter that isn't optimal for such tasks.
- networked 10y ago>You don't have to treat everything as a string. Oh, I agree with you on that. My point was that Tcl makes it especially easy to "cheat" and avoid building an AST. You may do this when you only care about writing an interpreter in few LOC, like the original version of Picol, quickly. A Tcl interpreter in VHDL sounds interesting. Do you have a public repository for it?
- kevin_thibedeau 10y agoI have it up on Github. It's 90% complete waiting for me to get some free time. http://kevinpt.github.io/vertcl/ http://kevinpt.github.io/vertcl/