-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nixd-next: switch to nixd-next (#327)
- Loading branch information
Showing
191 changed files
with
5,076 additions
and
12,994 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
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
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
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,48 @@ | ||
/// provides NODE(NAME) EXPR(NAME) | ||
|
||
#ifdef NODE | ||
|
||
/// ${ expr } | ||
NODE(Interpolation) | ||
NODE(InterpolableParts) | ||
|
||
/// \brief Misc node used for parentheses keywords etc. | ||
/// \see Misc | ||
NODE(Misc) | ||
NODE(Identifer) | ||
NODE(AttrName) | ||
NODE(AttrPath) | ||
NODE(Binding) | ||
NODE(Inherit) | ||
NODE(Binds) | ||
NODE(LambdaArg) | ||
NODE(Formals) | ||
NODE(Formal) | ||
NODE(Op) | ||
|
||
#endif // NODE | ||
|
||
|
||
|
||
#ifdef EXPR | ||
|
||
EXPR(ExprInt) | ||
EXPR(ExprFloat) | ||
EXPR(ExprVar) | ||
EXPR(ExprString) | ||
EXPR(ExprPath) | ||
EXPR(ExprParen) | ||
EXPR(ExprAttrs) | ||
EXPR(ExprSelect) | ||
EXPR(ExprCall) | ||
EXPR(ExprList) | ||
EXPR(ExprLambda) | ||
EXPR(ExprBinOp) | ||
EXPR(ExprUnaryOp) | ||
EXPR(ExprOpHasAttr) | ||
EXPR(ExprIf) | ||
EXPR(ExprAssert) | ||
EXPR(ExprLet) | ||
EXPR(ExprWith) | ||
|
||
#endif // EXPR |
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,16 @@ | ||
/// \file | ||
/// \brief AST nodes. | ||
/// | ||
/// Declares the AST nodes used by the parser, the nodes may be used in latter | ||
/// stages, for example semantic analysis. | ||
/// It is expected that they may share some nodes, so they are reference | ||
/// counted. | ||
|
||
#pragma once | ||
|
||
#include "Nodes/Attrs.h" | ||
#include "Nodes/Basic.h" | ||
#include "Nodes/Expr.h" | ||
#include "Nodes/Lambda.h" | ||
#include "Nodes/Op.h" | ||
#include "Nodes/Simple.h" |
Oops, something went wrong.