mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
Fix parsing edge case re: function calls at eof
This commit is contained in:
parent
4df8064407
commit
c8edddfd48
7 changed files with 1283 additions and 963 deletions
|
@ -57,6 +57,10 @@ pub enum Ident {
|
|||
pub struct Path(String);
|
||||
|
||||
impl Path {
|
||||
pub fn new(string: String) -> Path {
|
||||
Path(string)
|
||||
}
|
||||
|
||||
pub fn into_string(self) -> String {
|
||||
let Path(str) = self;
|
||||
|
||||
|
@ -176,4 +180,4 @@ impl Expr {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue