Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser无法处理只declare不初始化 #66

Open
MMZK1526 opened this issue Oct 18, 2023 · 0 comments
Open

Parser无法处理只declare不初始化 #66

MMZK1526 opened this issue Oct 18, 2023 · 0 comments

Comments

@MMZK1526
Copy link
Contributor

fun main(x: Char) {

  let x : I32 = 1;
  let a: I32 = 2;
  let b: F32 = 3.0;
}

可以parse,但是

fun main(x: Char) {

  let x : I32;
  let a: I32 = 2;
  let b: F32 = 3.0;
}

会parse报错:

syntax error: Expecting pattern
in [file "../examples/basicMain.dp", row 3, col 13 to row 3, col 14]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant