mini-typescript
mini-typescript copied to clipboard
fix when literal is string
fix when the type of Literal Expression is string
It looks like you're trying the exercise to add string literals. A couple of comments:
- I haven't figured out how people should try the exercises. I can look at PRs here if you want.
- What you have is the addition you need for the checker, but for new syntax like string literals, you'll also need substantial additions in the types, lexer and parser.
Maybe add some test & baseline files so beginners can try it out themselves? And enable discussion here?
I guess documentation on how to debug tests on vscode would be helpful.
Those are both really good ideas. I could make a branch that adds the tests and baselines and then people could fork from that branch.
I haven't actually debugged mini-typescript -- just console.log debugging -- so it'll take me some fiddling to get that set up, but it's definitely needed.
#12 kicks off discussions