MCPcopy Create free account

hub / github.com/amber-lang/heraclitus / functions

Functions172 in github.com/amber-lang/heraclitus

↓ 12 callersMethodget
(&mut self, meta: &mut M, mut module: S, cb: fn(S) -> ExprType, id: ExprId)
tests/arith_modules/expr.rs:25
↓ 12 callersFunctiontoken
Matches one token with given word If token was matched successfully - the word it contained is returned. Otherwise detailed information is returned a
src/compiling/parser/pattern.rs:18
↓ 10 callersMethodget_current_token
Return token under current index
src/compiling/parser/metadata.rs:94
↓ 10 callersMethodparse
(&mut self, meta: &mut DefaultMetadata)
src/compiling/parser/syntax_module.rs:107
↓ 9 callersMethodincrement_index
Optionally set logic of incrementing the index number
src/compiling/parser/metadata.rs:89
↓ 8 callersMethodget_index
(&self)
src/compiling/lexing/reader.rs:49
↓ 8 callersFunctionsyntax
Parses syntax module If syntax module was parsed successfully - nothing is returned. Otherwise detailed information is returned about where this happ
src/compiling/parser/pattern.rs:71
↓ 8 callersMethodtokenize
Tokenize source code Run lexer and tokenize code. The result is stored in the lexem attribute
src/compiling/lexing/lexer.rs:149
↓ 7 callersMethodnext
(&mut self)
src/compiling/lexing/reader.rs:111
↓ 7 callersMethodword_push
Push letter to the word and set token start index
src/compiling/lexing/lexer.rs:139
↓ 6 callersMethodget_path
Get the path to the file and return [unknown] if not supplied
src/compiling/failing/position_info.rs:82
↓ 6 callersMethodget_position
(&self)
src/compiling/lexing/reader.rs:55
↓ 6 callersMethodline
Render text with supplied coloring and end it with a newline
src/compiling/failing/logger.rs:62
↓ 5 callersMethodadd_word
(&self, lex_state: &mut LexState)
src/compiling/lexing/lexer.rs:77
↓ 5 callersMethodget_code
(&self)
src/compiling/parser/metadata.rs:58
↓ 5 callersMethodget_index
(&self)
src/compiling/parser/metadata.rs:42
↓ 5 callersMethodget_region
(&self)
src/compiling/lexing/region_handler.rs:31
↓ 5 callersMethodheader
Render header of your information
src/compiling/failing/logger.rs:39
↓ 5 callersMethodpattern_add_symbol
(&self, lex_state: &mut LexState, letter: char)
src/compiling/lexing/lexer.rs:110
↓ 4 callersMethodgenerate_region_map
Generate a region for region handler This functionality is required if we want to reference other regions. It is not supposed to be used explicitly i
src/compiling_rules/region.rs:176
↓ 4 callersMethodget_future
(&self, n: usize)
src/compiling/lexing/reader.rs:99
↓ 4 callersMethodget_row_col_len
Returns last row, column and it's length
src/compiling/failing/logger.rs:103
↓ 4 callersMethodpath
Render location details with supplied coloring
src/compiling/failing/logger.rs:78
↓ 4 callersMethodset_index
(&mut self, index: usize)
src/compiling/parser/metadata.rs:38
↓ 4 callersMethodsnippet
Render snippet of the code if the message is contextual to it
src/compiling/failing/logger.rs:189
↓ 3 callersMethodpattern_begin
(&self, lex_state: &mut LexState, letter: char)
src/compiling/lexing/lexer.rs:125
↓ 3 callersMethodset_debug
(&mut self, indent: usize)
src/compiling/parser/metadata.rs:50
↓ 3 callersFunctiontoken_by
Matches one token by defined function If token was matched successfully - the word it contained is returned. Otherwise detailed information is return
src/compiling/parser/pattern.rs:41
↓ 2 callersMethodadd_word_inclusively
(&self, lex_state: &mut LexState)
src/compiling/lexing/lexer.rs:93
↓ 2 callersMethodcomment
Add comment to an existing log
src/compiling/failing/message.rs:146
↓ 2 callersMethoddata
Attach additional data in form of a string
src/compiling/failing/position_info.rs:138
↓ 2 callersMethoddebug
Parser will display information about the call stack
src/compiling/compiler.rs:131
↓ 2 callersFunctionfloat
Match a float Matches a number that contains a floating point (has a dot in decimal notation) If desired - one can extend this implementation with ot
src/compiling/parser/preset.rs:114
↓ 2 callersMethodformat
(&self, formatter: &mut Formatter)
src/compiling/token.rs:19
↓ 2 callersMethodget_debug
(&mut self)
src/compiling/parser/metadata.rs:46
↓ 2 callersMethodget_history
(&self, n: usize)
src/compiling/lexing/reader.rs:68
↓ 2 callersMethodget_pos_by_code
In case of EOF this function ensures you to return concrete position
src/compiling/failing/position_info.rs:173
↓ 2 callersMethodget_slice
(&self, begin: usize, end: usize)
src/compiling/lexing/reader.rs:61
↓ 2 callersMethodhandle_compound
Determines what shall we do with detected compound
src/compiling/lexing/compound_handler.rs:46
↓ 2 callersMethodhandle_region
Check where we are in code and open / close some region if matched
src/compiling/lexing/region_handler.rs:49
↓ 2 callersFunctionindent
Matches indentation If indentation was matched successfully - the amount of spaces is returned. Otherwise detailed information is returned about wher
src/compiling/parser/pattern.rs:97
↓ 2 callersFunctionindent_with
Matches indentation with provided size If indentation was identified successfully return the std::cmp::Ordering depending on whether the amount of sp
src/compiling/parser/pattern.rs:119
↓ 2 callersFunctioninteger
Match an integer Matches a positive or negative integer. If desired - one can extend this implementation with other chars.
src/compiling/parser/preset.rs:89
↓ 2 callersMethodkind_to_color
(&self)
src/compiling/failing/logger.rs:30
↓ 2 callersMethodload
Load code string
src/compiling/compiler.rs:116
↓ 2 callersMethodmatch_region_by
( &self, reader: &Reader, cb: impl Fn(&Region) -> &String, candidates: &[Regio
src/compiling/lexing/region_handler.rs:94
↓ 2 callersMethodmatch_region_by_begin
(&self, reader: &Reader)
src/compiling/lexing/region_handler.rs:112
↓ 2 callersMethodmatch_region_by_end
(&self, reader: &Reader)
src/compiling/lexing/region_handler.rs:123
↓ 2 callersFunctionnumber
Match a number Matches a number that is an integer or float If desired - one can extend this implementation with other chars.
src/compiling/parser/preset.rs:145
↓ 2 callersMethodparse_debug
Do not implement this function as this is a predefined function for debugging
src/compiling/parser/syntax_module.rs:70
↓ 2 callersMethodpattern_end
(&self, lex_state: &mut LexState, letter: char)
src/compiling/lexing/lexer.rs:133
↓ 2 callersMethodshow
Shows (renders) the message while giving the ownership to this object away
src/compiling/failing/message.rs:153
↓ 2 callersMethodsnippet_from_code
Render snippet of the code based on the code data
src/compiling/failing/logger.rs:203
↓ 2 callersMethodupdated_pos
(mut self, meta: &impl Metadata)
src/compiling/failing/position_info.rs:75
↓ 1 callersMethodadd_indent
(&self, lex_state: &mut LexState)
src/compiling/lexing/lexer.rs:57
↓ 1 callersMethodexclude
(&mut self, target: ExprId)
tests/arith_modules/expr.rs:22
↓ 1 callersMethodget
(&mut self, meta: &mut M, mut module: S, cb: impl Fn(S) -> ExprType)
tests/cobra_modules/expr.rs:14
↓ 1 callersMethodget_highlighted_part
Returns chopped string where first and third part are supposed to be left as is but the second one is supposed to be highlighted
src/compiling/failing/logger.rs:126
↓ 1 callersMethodget_history_or_future
(&self, n: usize, mode: &ReadMode)
src/compiling/lexing/reader.rs:89
↓ 1 callersMethodget_max_pad_size
Get max padding size (for line numbering)
src/compiling/failing/logger.rs:114
↓ 1 callersMethodget_pos_by_file
In case of EOF this function ensures you to return concrete position
src/compiling/failing/position_info.rs:165
↓ 1 callersMethodget_pos_by_file_or_code
Get position of the error by either path or code
src/compiling/failing/position_info.rs:144
↓ 1 callersMethodget_region_by
(&self, cb: impl Fn(&Region) -> bool, candidates: &[Region])
src/compiling/lexing/region_handler.rs:139
↓ 1 callersMethodget_snippet_row
Return requested row with appropriate coloring
src/compiling/failing/logger.rs:146
↓ 1 callersMethodget_token_at
(&self, index: usize)
src/compiling/parser/metadata.rs:34
↓ 1 callersMethodget_trace
Get traceback
src/compiling/parser/metadata.rs:85
↓ 1 callersMethodis_region_closed
(&self, reader: &Reader)
src/compiling/lexing/region_handler.rs:38
↓ 1 callersMethodmessage
Add message to an existing log
src/compiling/failing/message.rs:140
↓ 1 callersMethodnext_letter
(&mut self)
src/compiling/lexing/reader.rs:28
↓ 1 callersFunctionnumeric
Match numeric word Matches a token of which word is a string of digits. If desired - one can extend this implementation with other chars.
src/compiling/parser/preset.rs:73
↓ 1 callersMethodpadded_line
Render padded text with a newline, applying the supplied coloring, and end it with another newline
src/compiling/failing/logger.rs:70
↓ 1 callersMethodparse_module
(&mut self, meta: &mut DefaultMetadata, module: ExprType)
tests/arith_modules/expr.rs:53
↓ 1 callersMethodparse_module
(&mut self, meta: &mut DefaultMetadata, module: ExprType)
tests/cobra_modules/expr.rs:27
↓ 1 callersMethodpeek
(&self)
src/compiling/lexing/reader.rs:78
↓ 1 callersMethodset_indent_size
(&mut self, size: usize)
tests/cobra_modules/block.rs:11
↓ 1 callersMethodtokenize
Run just lexer
src/compiling/compiler.rs:126
↓ 1 callersMethoduse_indents
Set the language to use indentations
src/compiling/compiler.rs:96
↓ 1 callersFunctionvariable
Match variable name Matches one token with a word that would be considered as a variable name. If desired - one can extend this implementation with o
src/compiling/parser/preset.rs:9
Functionalphabetic
Match alphabetic word Matches one token with a word that consists of letters only. If desired - one can extend this implementation with other chars.
src/compiling/parser/preset.rs:41
Functionalphanumeric
Match alphanumeric word Matches one token with a word that consists of letters or numbers only. If desired - one can extend this implementation with
src/compiling/parser/preset.rs:57
Functionarith
()
tests/arith.rs:5
Methodat_eof
Create a new error at the end of file
src/compiling/failing/position_info.rs:53
Methodat_pos
Create a new error at given position
src/compiling/failing/position_info.rs:65
Functioncobra
()
tests/cobra.rs:5
Methodcompile
Bulk run lexer and parser (used for testing purposes)
src/compiling/compiler.rs:136
Functioncorrect_history_and_future
()
src/compiling/lexing/reader.rs:163
Functiondisplay_token
()
src/compiling/token.rs:52
Methodfmt
(&self, formatter: &mut Formatter)
src/compiling/token.rs:38
Methodfrom_between_positions
Create an error at position between two PositionInfo objects This function is used to create an error between two positions which can be used to expr
src/compiling/failing/position_info.rs:126
Methodfrom_between_tokens
Create an error at position between two tokens This function is used to create an error between two tokens which can be used to express an error in a
src/compiling/failing/position_info.rs:111
Methodfrom_metadata
Create an error at current position of current token by metadata This function can become handy when parsing the AST. This takes the current index st
src/compiling/failing/position_info.rs:92
Methodfrom_token
Create an error at position of the provided token This function gives you ability to store tokens and error once you finished parsing the entire expr
src/compiling/failing/position_info.rs:100
Methodgenerate_compounds
Generates a tree where the key is the left item of the pair and values are all the right items of the pair
src/compiling/lexing/compound_handler.rs:34
Methodgenerate_region_rec
(this: Region, mut map: RegionMap)
src/compiling_rules/region.rs:177
Methodget_full_trace
(meta: &impl Metadata, position: PositionInfo)
src/compiling/failing/message.rs:172
Methodget_path
(&self)
src/compiling/parser/metadata.rs:54
Functionhandle_region
()
src/compiling/lexing/region_handler.rs:194
Functionindent_test
()
src/compiling/parser/pattern.rs:140
Functionindent_with_test
()
src/compiling/parser/pattern.rs:149
Functionindex_position
()
src/compiling/lexing/reader.rs:144
next →1–100 of 172, ranked by callers