BayesianLogic / blog

The BLOG programming language
http://bayesianlogic.github.io/
BSD 4-Clause "Original" or "Old" License
98 stars 31 forks source link

adding syntax support for externally defined distributions and functions #307

Open lileicc opened 10 years ago

lileicc commented 10 years ago

@cberzan @jxwuyi @datang1992 @tejasvsrinivasan

distribution Real Gaussian(Real mu, Real variance);
extern Real abs(Real x);
lileicc commented 10 years ago

@cberzan would you please check why it fails the test?

lileicc commented 10 years ago

solved compilation issue.

lileicc commented 10 years ago

I have another thought about extern.

extern might not be necessary. Since we can already write,

fixed Real abs(Real abs) = blog.model.AbsInterp();

Or we should even simplify it to be

fixed Real abs(Real abs) = blog.model.AbsInterp;
lileicc commented 10 years ago
extern Real abs(Real x);
distribution Real Gaussian(Real mu, Real variance);
cberzan commented 10 years ago

@lileicc Are you still changing this, or should I review?

lileicc commented 10 years ago

This is not ready for review yet. Since it needs support in Semant.java.

On Wed, Oct 1, 2014 at 5:24 PM, cberzan notifications@github.com wrote:

@lileicc https://github.com/lileicc Are you still changing this, or should I review?

— Reply to this email directly or view it on GitHub https://github.com/BayesianLogic/blog/pull/307#issuecomment-57562133.