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

Binary comparison operator in transition function definition get EOF error #179

Open
sbenthall opened this issue Feb 3, 2020 · 3 comments

Comments

@sbenthall
Copy link
Contributor

In this attempt to write a Dolang file for the KinkedRConsumer case (see econ-ark/DARKolo#9):

https://gist.github.com/sbenthall/67ac2884eafa8aebd51fc113cd77ae73

There is a parsing error.

Even though according to the Dynare documentation a binary comparison operator will evaluate to 0 or 1 (which believe would make this transition function/model work).

Here is the error:

https://gist.github.com/sbenthall/1a16372ea670b8dd2ad71e2703f885f7

@albop
Copy link
Member

albop commented Feb 7, 2020

In dolang, ** and ^ are equivalent and both denote the exponential operator.

@albop
Copy link
Member

albop commented Feb 7, 2020

What you would need is an indicator function. It does not exist in dolang yet. A starting point would be to try to add it to the python functions that are recognized: https://github.com/EconForge/Dolang.jl/blob/master/dolang/language.py

@sbenthall
Copy link
Contributor Author

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