Comments (7)
This also fails to parse but should probably be accepted:
a=~`x~`.p;
a=`x`.text;
from grammar.
We should probably ignore this problem since we can use this instead:
a="~`x~`.p";
from grammar.
b= %~`x`.p;
Should fail because there isn't two matching graves or quotes (since the first grave above is escaped).
from grammar.
Both of these parse for me separately:
a=~`x~`.p;
a=`x`.text;
But not together, looking at the grammar to see why.
from grammar.
I tried some grammar changes to get the above to parse together but didn't find any obvious quick fixes. The tilde isn't allowed in GRAVED strings but allowing it didn't get me any further.
The first tilde is causing the problem, and it parses if that is removed, but the result looks like it should be rejected.
It might be best at this stage not to make any grammar changes if there's a workaround like the quoted version above.
from grammar.
Have got this working with small grammar tweak:
a=~`x~`.p;
a=`x`.text;
Have added it as a new branch to experiment with.
from grammar.
Escaped graves are invalid syntax, although the parser accepts them inside quoted strings.
from grammar.
Related Issues (20)
- Possibly ambiguous expressions HOT 4
- Double negatives HOT 3
- Observation HOT 2
- Operator Precedence HOT 5
- Stray tokens files HOT 2
- Identifier names HOT 29
- Only strings in conditional tests HOT 1
- Upcase method not invoked HOT 5
- Non-UTF-8 Input Characters in tests HOT 2
- Deep object referencing in conditionals HOT 3
- Array problem HOT 6
- Standard Error Messages for Failures HOT 5
- New Built-in Method Suggestions
- Short path for loading modules HOT 1
- Graves and References Handling HOT 7
- Grammar Problem - double quotes HOT 4
- File update needed for new grammar HOT 1
- Interpreter escape for % HOT 2
- String Unicode Fragment Issues
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 grammar.