From a47dfd3d1417412f4d55ffa964d9fc98d8d53a9d Mon Sep 17 00:00:00 2001 From: johannst Date: Mon, 13 Sep 2021 22:26:20 +0000 Subject: deploy: 743f301eef632a41bd870529a9e838ce4974f9eb --- llvm_kaleidoscope_rs/parser/enum.ExprAST.html | 27 ++++++++++++++++++++++ llvm_kaleidoscope_rs/parser/index.html | 10 ++++++++ llvm_kaleidoscope_rs/parser/sidebar-items.js | 1 + .../parser/struct.FunctionAST.html | 17 ++++++++++++++ llvm_kaleidoscope_rs/parser/struct.Parser.html | 24 +++++++++++++++++++ .../parser/struct.PrototypeAST.html | 19 +++++++++++++++ 6 files changed, 98 insertions(+) create mode 100644 llvm_kaleidoscope_rs/parser/enum.ExprAST.html create mode 100644 llvm_kaleidoscope_rs/parser/index.html create mode 100644 llvm_kaleidoscope_rs/parser/sidebar-items.js create mode 100644 llvm_kaleidoscope_rs/parser/struct.FunctionAST.html create mode 100644 llvm_kaleidoscope_rs/parser/struct.Parser.html create mode 100644 llvm_kaleidoscope_rs/parser/struct.PrototypeAST.html (limited to 'llvm_kaleidoscope_rs/parser') diff --git a/llvm_kaleidoscope_rs/parser/enum.ExprAST.html b/llvm_kaleidoscope_rs/parser/enum.ExprAST.html new file mode 100644 index 0000000..d718684 --- /dev/null +++ b/llvm_kaleidoscope_rs/parser/enum.ExprAST.html @@ -0,0 +1,27 @@ +ExprAST in llvm_kaleidoscope_rs::parser - Rust + +

Enum llvm_kaleidoscope_rs::parser::ExprAST[][src]

pub enum ExprAST {
+    Number(f64),
+    Variable(String),
+    Binary(charBox<ExprAST>, Box<ExprAST>),
+    Call(StringVec<ExprAST>),
+}

+ Variants

+
Number(f64)

Number - Expression class for numeric literals like “1.0”.

+
Variable(String)

Variable - Expression class for referencing a variable, like “a”.

+
Binary(charBox<ExprAST>, Box<ExprAST>)

Binary - Expression class for a binary operator.

+
Call(StringVec<ExprAST>)

Call - Expression class for function calls.

+

Trait Implementations

Formats the value using the given formatter. Read more

+

This method tests for self and other values to be equal, and is used +by ==. Read more

+

This method tests for !=.

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Performs the conversion.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/parser/index.html b/llvm_kaleidoscope_rs/parser/index.html new file mode 100644 index 0000000..79a8a5c --- /dev/null +++ b/llvm_kaleidoscope_rs/parser/index.html @@ -0,0 +1,10 @@ +llvm_kaleidoscope_rs::parser - Rust + +

Module llvm_kaleidoscope_rs::parser[][src]

Structs

+
FunctionAST

FunctionAST - This class represents a function definition itself.

+
Parser

Parser for the kaleidoscope language.

+
PrototypeAST

PrototypeAST - This class represents the “prototype” for a function, +which captures its name, and its argument names (thus implicitly the number +of arguments the function takes).

+

Enums

+
ExprAST
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/parser/sidebar-items.js b/llvm_kaleidoscope_rs/parser/sidebar-items.js new file mode 100644 index 0000000..0582f57 --- /dev/null +++ b/llvm_kaleidoscope_rs/parser/sidebar-items.js @@ -0,0 +1 @@ +initSidebarItems({"enum":[["ExprAST",""]],"struct":[["FunctionAST","FunctionAST - This class represents a function definition itself."],["Parser","Parser for the `kaleidoscope` language."],["PrototypeAST","PrototypeAST - This class represents the “prototype” for a function, which captures its name, and its argument names (thus implicitly the number of arguments the function takes)."]]}); \ No newline at end of file diff --git a/llvm_kaleidoscope_rs/parser/struct.FunctionAST.html b/llvm_kaleidoscope_rs/parser/struct.FunctionAST.html new file mode 100644 index 0000000..9592bbb --- /dev/null +++ b/llvm_kaleidoscope_rs/parser/struct.FunctionAST.html @@ -0,0 +1,17 @@ +FunctionAST in llvm_kaleidoscope_rs::parser - Rust + +

Struct llvm_kaleidoscope_rs::parser::FunctionAST[][src]

pub struct FunctionAST(pub PrototypeAST, pub ExprAST);
Expand description

FunctionAST - This class represents a function definition itself.

+

Trait Implementations

Formats the value using the given formatter. Read more

+

This method tests for self and other values to be equal, and is used +by ==. Read more

+

This method tests for !=.

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Performs the conversion.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/parser/struct.Parser.html b/llvm_kaleidoscope_rs/parser/struct.Parser.html new file mode 100644 index 0000000..860dfc4 --- /dev/null +++ b/llvm_kaleidoscope_rs/parser/struct.Parser.html @@ -0,0 +1,24 @@ +Parser in llvm_kaleidoscope_rs::parser - Rust + +

Struct llvm_kaleidoscope_rs::parser::Parser[][src]

pub struct Parser<I> where
    I: Iterator<Item = char>, 
{ /* fields omitted */ }
Expand description

Parser for the kaleidoscope language.

+

Implementations

Implement the global variable int CurTok; from the tutorial.

+

Panics

+

Panics if the parser doesn’t have a current token.

+

Advance the cur_tok by getting the next token from the lexer.

+

Implement the fucntion int getNextToken(); from the tutorial.

+

definition ::= ‘def’ prototype expression

+

Implement std::unique_ptr<FunctionAST> ParseDefinition(); from the tutorial.

+

external ::= ‘extern’ prototype

+

Implement std::unique_ptr<PrototypeAST> ParseExtern(); from the tutorial.

+

toplevelexpr ::= expression

+

Implement std::unique_ptr<FunctionAST> ParseTopLevelExpr(); from the tutorial.

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Performs the conversion.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/parser/struct.PrototypeAST.html b/llvm_kaleidoscope_rs/parser/struct.PrototypeAST.html new file mode 100644 index 0000000..96148d4 --- /dev/null +++ b/llvm_kaleidoscope_rs/parser/struct.PrototypeAST.html @@ -0,0 +1,19 @@ +PrototypeAST in llvm_kaleidoscope_rs::parser - Rust + +

Struct llvm_kaleidoscope_rs::parser::PrototypeAST[][src]

pub struct PrototypeAST(pub String, pub Vec<String>);
Expand description

PrototypeAST - This class represents the “prototype” for a function, +which captures its name, and its argument names (thus implicitly the number +of arguments the function takes).

+

Trait Implementations

Formats the value using the given formatter. Read more

+

This method tests for self and other values to be equal, and is used +by ==. Read more

+

This method tests for !=.

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Performs the conversion.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file -- cgit v1.2.3