Comments (2)
It's funny that you mention that, because I have actually been thinking about writing a javascript interpreter for a while now. :) I agree that it would be nice to have a specification, but I don't know if it's worth making a separate repository for it. Is the description in the README not precise enough? I suppose one thing I can think of that the current version does that is left unspecified in the README is how the value of the {}
is not reset after each loop. (which is why {{}}
can sum the stack). Beyond that, there are some things I don't think we necessarily should specify, and instead leave that up to the interpreter. For example, I think ASCII mode is worth specifying, but I'm not sure if we should inlcude things like
- File input VS command line args
- Alternate overflow/underflow modes
- Debug flags
- Unicode mode
- Separate input and output formats (To allow for decimal in ASCII out, or vice versa).
Not that any of these are bad features, I just view them as interpreter perks.
from brain-flak.
Actually the differentiation between specifications and interpreter perks was the main thing I was interested in seeing in the specification. Namely how overflow/underflow should work and what the minimum maximum height of the stack should be.
As for about being in a separate repository, I felt that commits that tweaked the specification would create clutter when looking through the history of the repository as updates to the example programs have done (one of the things I have been meaning to do for a while is to migrate the example programs out of the README and into this repository's wiki). Speaking of the wiki, I was taking a look back at how it works and I was thinking that it might be the ideal place for such a thing (I had previously overlooked the wiki because I thought that it did not give you the ability to leave a description attached to your change like a commit message, but it turns out I was mistaken).
from brain-flak.
Related Issues (20)
- Logo HOT 4
- Debug Flag Documentation HOT 4
- Comments don't work on the last line of a program
- Unicode to decimal HOT 7
- Debug flags following a whitespace at the beginning of a program error HOT 1
- Lone @ symbols cause invalid character errors HOT 1
- Debug flags don't work properly when there is whitespace after the flag
- @ at the end of the program causes an error HOT 1
- Error messages are inconsistent? HOT 1
- Other languages HOT 4
- Comment your code? HOT 2
- Keyboard Interrupts don't work properly on TIO
- Chararacter HOT 2
- Mismatched Brackets HOT 4
- Invalid character is back HOT 1
- Cycle counting HOT 3
- Comments are read by Miniflak
- Flags are parsed even when not in debug mode
- Brain Flak classic no ascii output HOT 1
- Phasing out -a HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brain-flak.