Crate erg_common
source · [−]Expand description
provides utilities for parser, compiler, and vm crate.
Re-exports
pub use crate::str::Str;
Modules
Escape sequences change the color of the terminal
defines a command-line parser for ergc
.
バイトコードからオブジェクトを復元する
provides common components for error handling.
Fast, non-cryptographic hash used by rustc and Firefox.
Lazy values and one-time initialization of static data.
defines Opcode
(represents Python bytecode opcodes).
utilities for calling CPython.
オブジェクトのシリアライズ(バイナリ列化)のためのユーティリティーを定義・実装する
defines common traits used in the compiler.
defines Type
(type kind).
defines ValueObj
(used in the compiler, VM).
Macros
一度文字列をパースするので アドレスの比較をしたい場合はaddr_eq!またはAddrEq traitを使うこと
2重のunwrapまでサポート :は制限を回避するためのdummy token
indicates the current invoked function.
impl<T: NestedDisplay> Display for T NestedDisplay
はorphan-ruleに違反するので個別定義する
More languages will be added … マクロはパラメータを展開しないので、format!のロスがなくなる
Functions
cut \n
\r\n (Windows), \r (old MacOS) -> \n (Unix)