Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Marwes/haskell-compiler
/ functions
Functions
573 in github.com/Marwes/haskell-compiler
⨍
Functions
573
◇
Types & classes
100
↓ 1 callers
Method
in_current_scope
Returns true if the key has a value declared in the last declared scope
src/scoped_map.rs:57
↓ 1 callers
Method
insert_constraint_
(&mut self, constraints: &mut Vec<Name>, classname: Name)
src/typecheck.rs:1006
↓ 1 callers
Method
insert_globals
Puts the globals of `module_env` into the current scope of the renamer. This includes putting all globals from the imports and the the globals of the
src/renamer.rs:182
↓ 1 callers
Method
instance
(&mut self)
src/parser.rs:299
↓ 1 callers
Function
is_function
Returns true if the type is a function
src/typecheck.rs:1125
↓ 1 callers
Function
is_io
Returns whether the type in question is an IO action
src/repl.rs:14
↓ 1 callers
Function
lambda_iterator
Creates an iterator which walks through all the function types that are needed when creating a lambda with make_lambda Ex: (a -> b -> c) generates [(a
src/core.rs:1061
↓ 1 callers
Function
let_
(bindings : Vec<Binding>, expr : TypedExpr)
src/typecheck.rs:1597
↓ 1 callers
Method
list
(&mut self)
src/parser.rs:359
↓ 1 callers
Method
location
(&'a self)
src/module.rs:156
↓ 1 callers
Method
map_
(self, f: &mut F)
src/types.rs:154
↓ 1 callers
Function
match_
Match performs matching which is walks through the same process as unify but only allows the updates to be one way (such as between a type and the typ
src/typecheck.rs:1434
↓ 1 callers
Method
module_next
Returns a new token with some special rules necessary for the parsing of the module declaration TODO check if this can be removed somehow
src/lexer.rs:190
↓ 1 callers
Function
name_or_keyword
Takes a string which can be an identifier or a keyword and returns the correct TokenEnum
src/lexer.rs:121
↓ 1 callers
Function
new_tuple
Create a tuple with the constructor name inferred from the number of arguments passed in
src/parser.rs:1122
↓ 1 callers
Method
newtype
(&mut self)
src/parser.rs:923
↓ 1 callers
Method
next
(&mut self)
src/core.rs:1037
↓ 1 callers
Method
next
(&mut self)
src/deriving.rs:188
↓ 1 callers
Function
occurs
Checks whether a typevariable occurs in another type
src/typecheck.rs:1178
↓ 1 callers
Method
ord_fields
(&mut self, args_l: &[Id<Name>], args_r: &[Id<Name>])
src/deriving.rs:75
↓ 1 callers
Method
pattern_rec
Walks through the arguments of a pattern and typechecks each of them.
src/typecheck.rs:807
↓ 1 callers
Method
push_dictionary_member
Lookup which index in the instance dictionary that holds the function called 'name'
src/compiler.rs:879
↓ 1 callers
Function
quantify_
(start_var_age: isize, typ: &mut TcType)
src/typecheck.rs:1075
↓ 1 callers
Function
remove_empty_let
Replaces let expressions with no binding with the expression itself
src/lambda_lift.rs:170
↓ 1 callers
Method
rename_arguments
(&mut self, arguments: Vec<Pattern<InternedStr>>)
src/renamer.rs:333
↓ 1 callers
Method
rewrite
Takes a operator expression the is in the form (1 + (2 * (3 - 4))) and rewrites it using the operators real precedences
src/infix.rs:46
↓ 1 callers
Method
scan_number
Scans a number, float or isizeeger and returns the appropriate token
src/lexer.rs:299
↓ 1 callers
Function
simple_binding
Tests that the binding has no patterns for its arguments
src/core.rs:1065
↓ 1 callers
Function
skip_lambdas
(expr: &Expr<T>)
src/lambda_lift.rs:343
↓ 1 callers
Function
start
Starts the REPL
src/repl.rs:79
↓ 1 callers
Function
string
Creates a string literal expressions from a &str
src/core.rs:1114
↓ 1 callers
Method
strong_connect
(&mut self, v: VertexIndex)
src/graph.rs:94
↓ 1 callers
Method
swap
Swaps the value stored at key, or inserts it if it is not present
src/scoped_map.rs:88
↓ 1 callers
Method
translate_case
Translates a case expression into the core language. Since the core language do not have nested patterns the patterns are unwrapped into multiple case
src/core.rs:748
↓ 1 callers
Method
translate_equations
(&mut self, equations: &[Equation])
src/core.rs:860
↓ 1 callers
Function
translate_expr
(expr: module::TypedExpr<Name>)
src/core.rs:415
↓ 1 callers
Function
translate_module_
(translator: &mut Translator<'a>, module: module::Module<Name>)
src/core.rs:439
↓ 1 callers
Function
true_expr
()
src/deriving.rs:179
↓ 1 callers
Function
try_find_instance_type
Attempts to find the actual type of the for the variable which has a constraint
src/compiler.rs:1006
↓ 1 callers
Function
tuple_name
Constructs a string which holds the name of an n-tuple
src/renamer.rs:562
↓ 1 callers
Function
tuple_type
Returns the type of an n-tuple constructor as well as the name of the tuple
src/types.rs:185
↓ 1 callers
Method
typecheck_binding_group
Typechecks a group of bindings such as map f (x:xs) = ... map f [] = ...
src/typecheck.rs:820
↓ 1 callers
Method
typecheck_global_bindings
Typechecks a group of global bindings.
src/typecheck.rs:962
↓ 1 callers
Function
typecheck_module
Parses a module, renames and typechecks it, as well as all of its imported modules
src/typecheck.rs:1621
↓ 1 callers
Function
unify
Tries to unify two types, updating the substition as well as the types directly with the new type values.
src/typecheck.rs:1368
↓ 1 callers
Function
unit
Returns the unit type '()'
src/types.rs:243
↓ 1 callers
Method
unwrap_pattern
(&mut self, uid: usize, id: Id<Name>, pattern: module::Pattern<Name>, result: &mut Vec<(Id<Name>, Pattern<Id<N
src/core.rs:696
↓ 1 callers
Method
visit_expr
(&mut self, expr: &mut TypedExpr<Name>)
src/infix.rs:9
↓ 1 callers
Method
visit_pattern
(&mut self, _pattern: &Pattern<Ident>)
src/core.rs:217
↓ 1 callers
Function
walk_alternative
(visitor: &mut V, alt: &Alternative<Ident>)
src/module.rs:367
↓ 1 callers
Function
walk_alternative_mut
(visitor: &mut V, alt: &mut Alternative<Ident>)
src/module.rs:491
↓ 1 callers
Function
walk_binding
(visitor: &mut V, binding: &Binding<Ident>)
src/module.rs:309
↓ 1 callers
Function
walk_binding_mut
(visitor: &mut V, binding: &mut Binding<Ident>)
src/module.rs:428
↓ 1 callers
Function
walk_expr
(visitor: &mut V, expr: &TypedExpr<Ident>)
src/module.rs:316
↓ 1 callers
Function
walk_module
(visitor: &mut V, module: &Module<Ident>)
src/module.rs:300
↓ 1 callers
Function
walk_pattern
(visitor: &mut V, pattern: &Pattern<Ident>)
src/module.rs:388
↓ 1 callers
Function
walk_pattern_mut
(visitor: &mut V, pattern: &mut Pattern<Ident>)
src/module.rs:512
Function
add
()
src/compiler.rs:1101
Function
add_double
()
src/compiler.rs:1109
Function
all_constraints_match
()
src/typecheck.rs:2276
Function
all_free_vars
()
src/lambda_lift.rs:308
Function
all_uniques
()
src/lambda_lift.rs:236
Function
application
()
src/typecheck.rs:1689
Function
application
()
src/compiler.rs:1128
Function
argument_count_error
()
src/typecheck.rs:2252
Function
bench
(b: &mut Bencher)
src/lambda_lift.rs:369
Function
bench_prelude
(b: &mut Bencher)
src/parser.rs:1556
Function
bench_prelude
(b: &mut Bencher)
src/typecheck.rs:2322
Function
bench_prelude
(b: &mut Bencher)
src/compiler.rs:1266
Function
binding
()
src/parser.rs:1204
Function
binding_pattern
()
src/typecheck.rs:2132
Function
binding_pattern
()
src/compiler.rs:1245
Function
bool_pattern
(s: &str)
src/core.rs:1028
Function
bool_type
Returns the type for the Bool type
src/renamer.rs:600
Function
build_dictionary
()
src/vm.rs:1189
Function
case
(expr : TypedExpr, alts: Vec<Alternative>)
src/typecheck.rs:1601
Function
case_alternative_error
()
src/typecheck.rs:2257
Function
char_type
Returns the Type of the Char type
src/renamer.rs:592
Function
check_args
(expr: &Expr<Id>, args: &[InternedStr])
src/lambda_lift.rs:252
Function
compare_tags
Compares the tags of two constructors, returning an Ordering
src/vm.rs:783
Function
compile_case
()
src/compiler.rs:1156
Function
compile_class_constraints
()
src/compiler.rs:1170
Function
compile_class_constraints_unknown
()
src/compiler.rs:1187
Function
compile_constructor
()
src/compiler.rs:1138
Function
compile_prelude
()
src/compiler.rs:1204
Function
compile_tuple
()
src/compiler.rs:1147
Method
default
()
src/types.rs:278
Method
deref
(&self)
src/interner.rs:57
Function
deriving
()
src/parser.rs:1461
Function
deriving
()
src/typecheck.rs:2170
Function
deriving_eq
()
src/vm.rs:1154
Function
deriving_ord
()
src/vm.rs:1166
Method
description
(&self)
src/parser.rs:56
Method
description
(&self)
src/typecheck.rs:124
Method
description
(&self)
src/renamer.rs:93
Function
do_expr_pattern
()
src/typecheck.rs:2108
Function
do_expr_simple
()
src/typecheck.rs:2085
Function
do_expr_wrong_monad
()
src/typecheck.rs:2227
Function
double
()
src/parser.rs:1214
Function
double_type
Returns the type for the Double type
src/renamer.rs:604
← previous
next →
301–400 of 573, ranked by callers