JoshCheek / seeing_is_believing

Displays the results of every line of code in your file
1.31k stars 54 forks source link

Correctly identify number of lines (where DATA segment is) #48

Closed JoshCheek closed 9 years ago

JoshCheek commented 10 years ago

WrapExpressions should know how many lines there are, use that to identify this info rather than body.lines.count in main SiB script.

Also, might be worth including this info in the Result object.

JoshCheek commented 9 years ago

Done, It now requires every line end in a newline, and there is a Code object, which reflects on tokens to figure out where the end is. Not perfect, b/c Parser stops emitting tokens after the first newline after last expression, so have to check for comments and heredocs explicitly, but still a lot better.