jgyo / Hed

HDL Editor for Nand to Tetris
MIT License
0 stars 0 forks source link

Cannot load some HDL files #1

Closed jgyo closed 3 months ago

jgyo commented 3 months ago

No data is loaded into Hed when I try to load MUX.hdl from project #2 within the Nand2Tetris projects.

jgyo commented 3 months ago

This is due to an error in one of the regular expressions used to parse the HDL file. This will be fixed in the next version of HDL. In the meantime, you can work around this error by ensuring no whitespace exists at the end of lines within the HDL file. For example, in Mux.hdl, there is an extra space at the end of the line that looks like this:

/** <---- delete the extra space

Deleting that space allows Hed to load the file.

jgyo commented 3 months ago

Fixed in version 1.0.0.3.