diff options
author | Matth?us G. Chajdas <dev@anteru.net> | 2019-11-10 13:56:53 +0100 |
---|---|---|
committer | Matth?us G. Chajdas <dev@anteru.net> | 2019-11-10 13:56:53 +0100 |
commit | 1dd3124a9770e11b6684e5dd1e6bc15a0aa3bc67 (patch) | |
tree | 87a171383266dd1f64196589af081bc2f8e497c3 /tests/examplefiles/example.bc | |
parent | f1c080e184dc1bbc36eaa7cd729ff3a499de568a (diff) | |
download | pygments-master.tar.gz |
Diffstat (limited to 'tests/examplefiles/example.bc')
-rw-r--r-- | tests/examplefiles/example.bc | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/tests/examplefiles/example.bc b/tests/examplefiles/example.bc deleted file mode 100644 index 6604cd31..00000000 --- a/tests/examplefiles/example.bc +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Calculate the Greatest Common Divisor of a and b. - */ -define gcd(a, b) { - auto tmp; - - /* - * Euclidean algorithm - */ - while (b != 0) { - tmp = a % b; - a = b; - b = tmp; - } - return a; -} -"gcd(225, 150) = " ; gcd(225, 150) - -/* assign operators */ -a = 10 -a += 1 -a++ -++a -a-- ---a -a += 5 -a -= 5 -a *= 2 -a /= 3 -a ^= 2 -a %= 2 - -/* comparison */ -if (a > 2) { -} -if (a >= 2) { -} -if (a == 2) { -} -if (a != 2) { -} -if (a <= 2) { -} -if (a < 2) { -} - -a /* /*/ * 2 /* == a * 2 */ -a //* /*/ 1.5 /* == a / 1.5 */ -a /*/*/ * 3 /* == a * 3 */ -a * 3 /**/ * 4 /* == a * 3 * 4 */ -a / 3 //*//*/ .4 /* == a / 3 / 0.4 */ -a / 3 //*//*/ 1.3 /* == a / 3 / 1.4 */ -a / 3 /*//*// 1.3 /* == a / 3 / 1.4 */ |