|
nixd
|
Namespaces | |
| namespace | detail |
Classes | |
| class | Attribute |
| class | AttrName |
| class | AttrPath |
| class | Binding |
| class | Binds |
| class | Definition |
| Represents a definition. More... | |
| class | Diagnostic |
| class | Dot |
| Holds a "." in the language. More... | |
| class | EnvNode |
| A set of variable definitions, which may inherit parent environment. More... | |
| class | Expr |
| class | ExprAssert |
| class | ExprAttrs |
| class | ExprBinOp |
| class | ExprCall |
| A call/apply to some function. More... | |
| class | ExprFloat |
| class | ExprIf |
| class | ExprInt |
| class | ExprLambda |
| class | ExprLet |
| class | ExprList |
| class | ExprOp |
| Abstract class for binary operators and unary operators. More... | |
| class | ExprOpHasAttr |
| class | ExprParen |
| class | ExprPath |
| class | ExprSelect |
| class | ExprSPath |
| class | ExprString |
| class | ExprUnaryOp |
| class | ExprVar |
| class | ExprWith |
| class | Fix |
| class | Formal |
| class | Formals |
| Lambda formal arguments. More... | |
| class | Identifier |
| Identifier. Variable names, attribute names, etc. More... | |
| class | Inherit |
| class | InterpolablePart |
| class | InterpolatedParts |
| class | Interpolation |
| ${expr} construct More... | |
| class | LambdaArg |
| class | Lexer |
| class | LexerCursor |
| A point in the source file. More... | |
| class | LexerCursorRange |
| class | Misc |
| Misc node, used for parentheses, keywords, etc. More... | |
| class | Node |
| class | Note |
| class | Op |
| class | ParentMapAnalysis |
| class | Parser |
| class | PartialDiagnostic |
| class | Position |
| class | PositionRange |
| struct | PrimOpInfo |
| class | Sema |
| class | SemaAttrs |
| Attribute set after deduplication. More... | |
| class | TextEdit |
| class | Token |
| A token. With it's kind, and the range in source code. More... | |
| class | VariableLookupAnalysis |
Typedefs | |
| using | NixInt = int64_t |
| using | NixFloat = double |
Enumerations | |
| enum class | DiagnosticTag { Faded , Striked } |
| enum class | PrimopLookupResult : std::uint8_t { Found , PrefixedFound , NotFound } |
| Result of looking up a primop by name. More... | |
Functions | |
| void | to_json (nlohmann::json &R, const LexerCursor &LC) |
| void | to_json (nlohmann::json &R, const LexerCursorRange &LCR) |
| void | to_json (nlohmann::json &R, const PartialDiagnostic &D) |
| void | to_json (nlohmann::json &R, const Diagnostic &D) |
| void | to_json (nlohmann::json &R, const Note &N) |
| void | to_json (nlohmann::json &R, const TextEdit &D) |
| void | to_json (nlohmann::json &R, const Fix &F) |
| std::shared_ptr< Node > | parse (std::string_view Src, std::vector< Diagnostic > &Diags) |
| Parse a string. | |
| PrimopLookupResult | lookupGlobalPrimOpInfo (const std::string &Name) |
| Look up information about a global primop by name. | |
Variables | |
| std::map< std::string, nixf::PrimOpInfo > | PrimOpsInfo |
Diagnostic.h, diagnostic types and definitions
Diagnostics are structures with a main message, and optionally some additional information (body).
For diagnostics with a body, they may need a special overrided function to format the message.
| using nixf::NixFloat = double |
| using nixf::NixInt = int64_t |
|
strong |
| Enumerator | |
|---|---|
| Faded | |
| Striked | |
Definition at line 74 of file Diagnostic.h.
|
strong |
Result of looking up a primop by name.
| Enumerator | |
|---|---|
| Found | The primop was found with an exact match. |
| PrefixedFound | The primop was found, but needs "builtin." prefix. |
| NotFound | The primop was not found. |
Definition at line 40 of file PrimOpInfo.h.
| PrimopLookupResult nixf::lookupGlobalPrimOpInfo | ( | const std::string & | Name | ) |
Look up information about a global primop by name.
Definition at line 5 of file PrimOpLookup.cpp.
References Found, NotFound, PrefixedFound, and PrimOpsInfo.
| std::shared_ptr< Node > nixf::parse | ( | std::string_view | Src, |
| std::vector< Diagnostic > & | Diags ) |
Parse a string.
| Src | The string to parse. |
| Diags | Diagnostics will be appended to this vector. |
Definition at line 37 of file ParseSupport.cpp.
References nixf::Parser::parse().
Referenced by main().
| void nixf::to_json | ( | nlohmann::json & | R, |
| const Diagnostic & | D ) |
References to_json().
| void nixf::to_json | ( | nlohmann::json & | R, |
| const LexerCursor & | LC ) |
| void nixf::to_json | ( | nlohmann::json & | R, |
| const LexerCursorRange & | LCR ) |
References to_json().
| void nixf::to_json | ( | nlohmann::json & | R, |
| const PartialDiagnostic & | D ) |
References to_json().
|
extern |
Referenced by lookupGlobalPrimOpInfo(), and nixf::VariableLookupAnalysis::runOnAST().