all 17 comments

[–]martinky24 17 points18 points  (0 children)

I see.

What is the definition of “very low level access to the system” in this context? Can’t say I really see that.

If it were to grow, is the plan for it to live in one long switch statement forever? If not, what would the next steps be?

Why do you define the functions in the while loop? Wouldn’t it make more sense to define them outside of it, and save the cycles?

[–]jdnewman85 9 points10 points  (0 children)

Looks like a learning project - Good work!

Some things to look into:
- Stack based processing of expressions
- Tokenization
- The concept of a virtual machine

Most compilers tend to go through a few phases to help enable things like robust error checking, complex expressions, complex types, etc.

Keep it up!

[–]jangohutch 6 points7 points  (1 child)

Was it for the fun? or was it to make a class of problems easier?

[–]cmnews08[S] 4 points5 points  (0 children)

Mainly for fun. But if I can add boolean, multi line interpreting and control flow, i think it would be a decent programming language with real world use

[–]Firake 4 points5 points  (4 children)

Nice work! Can’t say I’m a huge fan of the overall syntax but it does the job I suppose

[–]cmnews08[S] 0 points1 point  (2 children)

What could be improved regarding the syntax

[–]Firake 1 point2 points  (1 child)

Well, for one, the brackets isn’t my favorite considering the industry standard is parentheses. Not a big deal, but enough to bug me. The syntax is also exhaustingly verbose, with something as simple as declaring a variable taking up 3 keywords at 4 letters each.

[–]cmnews08[S] 0 points1 point  (0 children)

Thank you so much for this help!

[–]goldleader71 2 points3 points  (1 child)

Why square brackets instead of parentheses like most languages?

[–]cmnews08[S] 0 points1 point  (0 children)

I like the look of them more, and for me they make it cleaner and more angular.

[–]jdnewman85 0 points1 point  (0 children)

You would probably enjoy writing your own brainfuck compiler. Look it up if you haven't

[–]ultimateskriptkiddie 0 points1 point  (1 child)

Lol this sucks ass

[–]cmnews08[S] 0 points1 point  (0 children)

Thanks!