Tensor Comprehensions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
lang Namespace Reference

Classes

struct  ErrorReport
 
struct  TokenTrie
 
struct  SharedParserData
 
struct  SourceRange
 
struct  Token
 
struct  Lexer
 
struct  Parser
 
struct  TypeInfo
 
struct  Sema
 
struct  Tree
 
struct  String
 
struct  Number
 
struct  Bool
 
struct  Compound
 
struct  pretty_tree
 tree pretty printer More...
 
struct  TreeView
 
struct  ListViewIterator
 
struct  ListView
 
struct  OptionView
 
struct  Ident
 
struct  ApplyLike
 
struct  BuiltIn
 
struct  TensorType
 
struct  Param
 
struct  Equivalent
 
struct  RangeConstraint
 
struct  Comprehension
 
struct  Def
 
struct  Select
 
struct  Const
 
struct  Cast
 
struct  Let
 
struct  Exists
 

Typedefs

using TokenTrieRef = std::unique_ptr< TokenTrie >
 
using TreeRef = std::shared_ptr< Tree >
 
using TreeList = std::vector< TreeRef >
 
using List = ListView< TreeRef >
 
using Apply = ApplyLike< TK_APPLY >
 
using Access = ApplyLike< TK_ACCESS >
 

Enumerations

enum  TokenKind { TK_DUMMY_START = 256 }
 

Functions

TreeRef canonicalize (TreeRef tree)
 
void warn (const ErrorReport &err)
 
template<typename T >
const ErrorReportoperator<< (const ErrorReport &e, const T &t)
 
std::string kindToString (int kind)
 
SharedParserDatasharedParserData ()
 

Detailed Description

Copyright (c) 2017-present, Facebook, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Typedef Documentation

using lang::Access = typedef ApplyLike<TK_ACCESS>
using lang::Apply = typedef ApplyLike<TK_APPLY>
using lang::List = typedef ListView<TreeRef>
using lang::TokenTrieRef = typedef std::unique_ptr<TokenTrie>
using lang::TreeList = typedef std::vector<TreeRef>
using lang::TreeRef = typedef std::shared_ptr<Tree>

Enumeration Type Documentation

Enumerator
TK_DUMMY_START 

Function Documentation

TreeRef lang::canonicalize ( TreeRef  tree)
std::string lang::kindToString ( int  kind)
template<typename T >
const ErrorReport& lang::operator<< ( const ErrorReport &  e,
const T &  t 
)
SharedParserData& lang::sharedParserData ( )
void lang::warn ( const ErrorReport &  err)
inline