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

Wrong line number in the error information #1

Open
zacx-z opened this issue Dec 31, 2012 · 1 comment
Open

Wrong line number in the error information #1

zacx-z opened this issue Dec 31, 2012 · 1 comment

Comments

@zacx-z
Copy link
Owner

zacx-z commented Dec 31, 2012

The following code shall produce a syntax error because (sin, cos) shouldn't be enclosed by parentheses. But the line number in the error reported is incorrect (1 is reported instead of 3).

node main(x,y:real) returns(sin,cos:real)
let
    (sin, cos) = (1, 0) -> sincos(x);
tel


node sincos(omega:real) returns (sin, cos: real)
let
    sin = omega * integrator(cos, 0.1, 0.0);
    cos = omega * integrator(0.0 -> -pre(sin), 0.1, 1.0);
tel
@yczhang89
Copy link

I am the TA. I report that this bug is not present in my original parser XD

btw. Sorry about the syntax inconsistence with Lustre V5..

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

2 participants