-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nickel has change some primops to contain a forward slash `/`, which wasn't supported by the parser (they would be parsed as modulo instead). This commit extend the `builtin` rule to accepts a larger class of valid builtin names, including those new ones, and hopefully potential future ones as well.
- Loading branch information
Showing
6 changed files
with
1,704 additions
and
1,621 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
================================================================================ | ||
Normal primop | ||
================================================================================ | ||
|
||
%plus% 1 2 | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
(term | ||
(uni_term | ||
(infix_expr | ||
(applicative | ||
(applicative | ||
(applicative | ||
(record_operand | ||
(atom | ||
(builtin)))) | ||
(record_operand | ||
(atom | ||
(num_literal)))) | ||
(record_operand | ||
(atom | ||
(num_literal))))))) | ||
|
||
================================================================================ | ||
Slashed primop | ||
================================================================================ | ||
|
||
%array/length% [] | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
(term | ||
(uni_term | ||
(infix_expr | ||
(applicative | ||
(applicative | ||
(record_operand | ||
(atom | ||
(builtin)))) | ||
(record_operand | ||
(atom)))))) | ||
|
||
================================================================================ | ||
Extended primop (currently inexistent) | ||
================================================================================ | ||
|
||
%__some/primop.foo.bar'% | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
(term | ||
(uni_term | ||
(infix_expr | ||
(applicative | ||
(record_operand | ||
(atom | ||
(builtin))))))) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.