mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
First (failed!) attempt at string interpolation
This commit is contained in:
parent
6bdff2b069
commit
7ae610ad18
3 changed files with 70 additions and 35 deletions
|
@ -7,7 +7,9 @@ pub enum Expr {
|
|||
// Literals
|
||||
Int(i64),
|
||||
Frac(i64, u64),
|
||||
EmptyStr,
|
||||
Str(String),
|
||||
InterpolatedStr(Vec<(String, Ident)>, String),
|
||||
Char(char),
|
||||
Bool(bool),
|
||||
|
||||
|
@ -34,7 +36,7 @@ pub enum Expr {
|
|||
Error(Problem),
|
||||
}
|
||||
|
||||
type Ident = String;
|
||||
pub type Ident = String;
|
||||
|
||||
impl fmt::Display for Expr {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue