Comments (3)
If I'm not mistaken, a simple if could be written like this right?
foo > 5 TIER:
>mfw whatever;
100% accurate
Looking at parsing.txt, we could write this as:
foo > 5 TIER: >mfw whatever; 100% accurate
I don't really see the need to make this shorter. If you still think so, one option would be to distinguish between
tier list = tier , { tier } , newline , "100% accurate" ;
and
compact tier = limited expression , "TIER:" , full expression ;
compact tier list = compact tier, newline ;
So we can write:
foo > 5 TIER: >mfw whatever;
from -g-pl.
The compact tier idea wouldn't work, since it's ambiguous between
foo > 5 TIER: >mfw whatever;
foo < 4 TIER: >mfw whatever;
as two compact lists or a single full list, during parsing.
You're probably right, I'm just annoyed about the huge 100% accurate block. Maybe a short form that's just a %? Or would that be too obscure / golfish?
from -g-pl.
Ah yeah, I forgot about that.
Parsing it as a single full list means that the second TIER can never be executed, as two compact lists means that it can be executed.
from -g-pl.
Related Issues (17)
- Multiline comments HOT 2
- OP function (aka main) HOT 5
- Allow global execution or not? HOT 10
- Repetition HOT 16
- gb2 needs a rework HOT 5
- Function call delimiter HOT 8
- Recursion HOT 1
- Thread on /g/ HOT 4
- Partial application HOT 1
- Array structure HOT 9
- Switch statement HOT 1
- Parsing diagram HOT 3
- "100% accurate" form for functions HOT 1
- Boolean HOT 3
- Finite State Machine and Lexer HOT 6
- Infix Operators vs Functions HOT 7
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 -g-pl.