Standard Library
std.parse
Parsing helpers for turning text into typed Tea values.
Exported functions
pub def try_int(text: String) -> Int ! ParseError
Parse an integer from text.
pub def int(text: String) -> Int
Parse an integer from text and panic on invalid input.
pub def try_float(text: String) -> Float ! ParseError
Parse a floating-point number from text.
pub def float(text: String) -> Float
Parse a floating-point number from text and panic on invalid input.
pub def try_bool(text: String) -> Bool ! ParseError
Parse a boolean from text.
pub def bool(text: String) -> Bool
Parse a boolean from text and panic on invalid input.
pub def words(text: String) -> List[String]
Split text into non-empty whitespace-delimited tokens.