Steve Kemp

Results 90 comments of Steve Kemp

Also see the comment starting at [line 652](https://github.com/torvalds/linux/blob/d158fc7f36a25e19791d25a55da5623399a2644f/fs/ext4/resize.c#L652). i.e. The code should read: ``` // current power of three, init to 3^0 unsigned three = 1; ``` Regardless your patch...

"Error in DEF FN: Expected FN after DEF" means: * The program started processing a "DEF..." statement. * But the next token was not "FN". `gobasic` expects something like: DEF...

That would be a harder change than I'd like; since the parse would need to know that "`FNA`" was not the identifier "`FNA`" but instead two tokens "`FN` + `A`"..

Patches welcome, but I regard this as something I'd not be personally interested in implementing. In my view simple BASIC uses FOR-loops, and line-numbers. Things like WHILE/WEND is the start...

All the versions of BASIC I'm familiar with expect a prompt. For example: * https://en.wikibooks.org/wiki/BASIC_Programming/Beginning_BASIC/User_Input I think this is a matter of opinion, because you can receive the same _result_...

> Very great project. I'm glad it is useful, I had a lot of fun writing it. > Can I add function to call system call If you could be...

Some BASICs allow this. e.g. visual-basic: * https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/for-next-statement Some BASIC implementations do not. * e.g. ZX Spectrum When I've been in doubt, I've gone with the latter approach.

I've had a quick glance it and looks reasonable, I guess I'd be curious to see if `a.b.c.d.e..` works as well as `a.b`, but I'll test that. Thanks for your...

Looks like this breaks things, in two ways: ## Test cases fail ``` $ go test ./... ? github.com/skx/monkey [no test files] ok github.com/skx/monkey/ast (cached) ok github.com/skx/monkey/evaluator (cached) unterminated regular...

These parts of the standard-library are the first to fail: ``` assert( "[].empty?()" ); assert( "![1,2].empty?()" ); assert( "![\"steve\",3].empty?()" ); ``` Commenting them out results in later failures. Something odd...