tingwei628 / bfcs

brainfuck in C#
MIT License
1 stars 1 forks source link

token identification #2

Open tingwei628 opened 4 years ago

tingwei628 commented 4 years ago

review source

One more change you need to make this work: _program() needs to return null if the next token is a ']'. Because ']' is not the start of any program.

tingwei628 commented 4 years ago

same above

_inst() shouldn't need to check for null token as it does in line 132, because _program() shouldn't call _inst() unless the next token is the first token of an inst.