diff options
author | Georg Brandl <georg@python.org> | 2014-09-20 00:12:54 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-09-20 00:12:54 +0200 |
commit | f7219e7b8b5236db12e077ba36f54182cd665941 (patch) | |
tree | 7a65d7f54e5f9b36a1b3342c79a1eb06a8198878 /tests/examplefiles/example.stan | |
parent | ac4a2c47e625fdc12d83a07d360d678abd39af62 (diff) | |
parent | 33cb0a84a19b4e96d694eb99b490346f20e315d7 (diff) | |
download | pygments-f7219e7b8b5236db12e077ba36f54182cd665941.tar.gz |
Merged in pchaigno/pygments-main/prolog-ecl (pull request #374)
Diffstat (limited to 'tests/examplefiles/example.stan')
-rw-r--r-- | tests/examplefiles/example.stan | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/examplefiles/example.stan b/tests/examplefiles/example.stan index 7eb6fdfc..716b4d12 100644 --- a/tests/examplefiles/example.stan +++ b/tests/examplefiles/example.stan @@ -5,6 +5,14 @@ It is not a real model and will not compile */ # also a comment // also a comment +functions { + void f1(void a, real b) { + return 1 / a; + } + real f2(int a, vector b, real c) { + return a + b + c; + } +} data { // valid name int abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_abc; @@ -20,6 +28,7 @@ data { corr_matrix[3] grault; cov_matrix[3] garply; cholesky_factor_cov[3] waldo; + cholesky_factor_corr[3] waldo2; real<lower=-1,upper=1> foo1; real<lower=0> foo2; @@ -87,6 +96,7 @@ model { tmp / tmp; tmp .* tmp; tmp ./ tmp; + tmp ^ tmp; ! tmp; - tmp; + tmp; @@ -107,4 +117,3 @@ generated quantities { real bar1; bar1 <- foo + 1; } - |