Comments (1)
I was sure we had a test for this. And we do, in corner-cases.t.
{
my $program = q:to/./;
if "James" -> s {
say(s);
}
.
my $ast = q:to/./;
(statements
(if (str "James") (block (parameters (ident "s")) (statements
(stexpr (call (ident "say") (arguments (ident "s"))))))))
.
parses-to $program, $ast, "if statement with a pointy block";
}
But the test only makes sure we compile to the right AST. Something must be going wrong after that. Perhaps in the way Q::Statement::If
handles its parameter declaration?
from alma.
Related Issues (20)
- Read and relate to the "Hygienic Macro Technologies" paper
- Switch to calling Perl 6 "Raku" in the README HOT 5
- React in some way to MetaOCaml HOT 13
- Add Records and Tuples (as a syntax extension) like in the TC39 proposal
- Consider code coverage (as a code generation technique) HOT 9
- Consider having a ? operator on calls (like Rust) for error propagation HOT 3
- React in some way to Flatt's "Binding as a set of scopes" work in Racket HOT 6
- Suggestion: add alma to an online evaluator HOT 1
- Get off Travis HOT 1
- Move get, set, and has to be on Dict instead of on dictionary instances
- MOP _ΠΈ_ AST? Por que los dos? HOT 3
- Alma's (and Raku's) quasi scoping is significantly different from Scheme's/Lisp's HOT 16
- Add a test for nested unquotes HOT 1
- Reasons for modules HOT 69
- Add an `under` macro for bidirectional transformation HOT 2
- The quasi in the example name.alma doesn't need to take a closure
- Handle (ignore) the BOM
- Fix mis-implemented test
- A unification of access paths HOT 2
- Handling of MAIN over-catches X::ParameterMismatch exceptions
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 alma.