diff options
| author | admin (centauri.fritz.box) <puppet@mx.buetow.org> | 2014-06-30 23:25:24 +0200 |
|---|---|---|
| committer | admin (centauri.fritz.box) <puppet@mx.buetow.org> | 2014-06-30 23:25:24 +0200 |
| commit | 337c1c8abbe199670259bb043b95b541945427f4 (patch) | |
| tree | fbb8560b9f1239b317cfb481d10383b0a51ab8bc | |
| parent | 21622fd15950bfb975ca8fef73a8ca1bd4c2a8e2 (diff) | |
| parent | 1ec6dc9e106deed2e71bcad5ec74db65b9c61677 (diff) | |
Merge remote-tracking branch 'remotes/github/build-009669' into build-009669build-009669
55 files changed, 520 insertions, 466 deletions
@@ -9,7 +9,7 @@ modification, are permitted provided that the following conditions are met: * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - * Neither the name of P. B. Labs nor the names of its contributors may + * Neither the name of buetow.org nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. diff --git a/docs/header.txt b/docs/header.txt index 9bbce0f..88c96c2 100644 --- a/docs/header.txt +++ b/docs/header.txt @@ -1,11 +1,11 @@ File: ${FILE} A simple interpreter -WWW : http://fype.buetow.org +WWW : http://fype.buetow.org AUTHOR : http://paul.buetow.org E-Mail : fype at dev.buetow.org -Copyright (c) 2005 - 2008, Paul Buetow +Copyright (c) 2005 - 2009, Dipl.-Inform. (FH) Paul C. Buetow All rights reserved. Redistribution and use in source and binary forms, with or without modi- @@ -15,7 +15,7 @@ fication, are permitted provided that the following conditions are met: * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - * Neither the name of P. B. Labs nor the names of its contributors may + * Neither the name of buetow.org nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. diff --git a/docs/help.txt b/docs/help.txt index df495db..545eda4 100644 --- a/docs/help.txt +++ b/docs/help.txt @@ -1,4 +1,4 @@ -Fype Superalpha Build 9666 +Fype0 Alpha Build 9669 (c) Paul C. Buetow (2005 - 2008) <fype@dev.buetow.org> -e Executes given code string (see synopses) -h Prints this help diff --git a/docs/stats.txt b/docs/stats.txt index 44d1b38..b44c232 100644 --- a/docs/stats.txt +++ b/docs/stats.txt @@ -1,4 +1,4 @@ -===> Num of C source files : 46 -===> Num of C source lines : 8225 -===> Num of Fype source examples : 14 -===> Num of Fype source lines : 362 +===> Num of C source files : 46 +===> Num of C source lines : 8227 +===> Num of Fype source examples : 15 +===> Num of Fype source lines : 376 diff --git a/docs/version.txt b/docs/version.txt index 5e6f1ea..dd836b0 100644 --- a/docs/version.txt +++ b/docs/version.txt @@ -1 +1 @@ -Fype Superalpha Build 9666 +Fype0 Alpha Build 9669 diff --git a/examples/assert.fy b/examples/assert.fy new file mode 100644 index 0000000..d9871f5 --- /dev/null +++ b/examples/assert.fy @@ -0,0 +1,14 @@ +#* + * Examples of how to use asserts + *# + +# The built in function assert checks if a condition evaluates to true +# and aborts the interpreter if it evaluates to false. + +# Evaluates to true +assert 0 == 0 +assert 6 == 2 * 3 + +# Evaluates to false +# assert 1 == 0 + Binary files differ@@ -2,11 +2,11 @@ *: File: ./src/argv.c *: A simple interpreter *: - *: WWW : http://fype.buetow.org + *: WWW : http://fype.buetow.org *: AUTHOR : http://paul.buetow.org *: E-Mail : fype at dev.buetow.org *: - *: Copyright (c) 2005 - 2008, Paul Buetow + *: Copyright (c) 2005 - 2009, Dipl.-Inform. (FH) Paul C. Buetow *: All rights reserved. *: *: Redistribution and use in source and binary forms, with or without modi- @@ -16,7 +16,7 @@ *: * Redistributions in binary form must reproduce the above copyright *: notice, this list of conditions and the following disclaimer in the *: documentation and/or other materials provided with the distribution. - *: * Neither the name of P. B. Labs nor the names of its contributors may + *: * Neither the name of buetow.org nor the names of its contributors may *: be used to endorse or promote products derived from this software *: without specific prior written permission. *: @@ -2,11 +2,11 @@ *: File: ./src/argv.h *: A simple interpreter *: - *: WWW : http://fype.buetow.org + *: WWW : http://fype.buetow.org *: AUTHOR : http://paul.buetow.org *: E-Mail : fype at dev.buetow.org *: - *: Copyright (c) 2005 - 2008, Paul Buetow + *: Copyright (c) 2005 - 2009, Dipl.-Inform. (FH) Paul C. Buetow *: All rights reserved. *: *: Redistribution and use in source and binary forms, with or without modi- @@ -16,7 +16,7 @@ *: * Redistributions in binary form must reproduce the above copyright *: notice, this list of conditions and the following disclaimer in the *: documentation and/or other materials provided with the distribution. - *: * Neither the name of P. B. Labs nor the names of its contributors may + *: * Neither the name of buetow.org nor the names of its contributors may *: be used to endorse or promote products derived from this software *: without specific prior written permission. *: diff --git a/src/build.h b/src/build.h index 4e046ad..27dbb5c 100644 --- a/src/build.h +++ b/src/build.h @@ -2,11 +2,11 @@ *: File: ./src/build.h *: A simple interpreter *: - *: WWW : http://fype.buetow.org + *: WWW : http://fype.buetow.org *: AUTHOR : http://paul.buetow.org *: E-Mail : fype at dev.buetow.org *: - *: Copyright (c) 2005 - 2008, Paul Buetow + *: Copyright (c) 2005 - 2009, Dipl.-Inform. (FH) Paul C. Buetow *: All rights reserved. *: *: Redistribution and use in source and binary forms, with or without modi- @@ -16,7 +16,7 @@ *: * Redistributions in binary form must reproduce the above copyright *: notice, this list of conditions and the following disclaimer in the *: documentation and/or other materials provided with the distribution. - *: * Neither the name of P. B. Labs nor the names of its contributors may + *: * Neither the name of buetow.org nor the names of its contributors may *: be used to endorse or promote products derived from this software *: without specific prior written permission. *: @@ -36,7 +36,7 @@ #ifndef BUILD_H #define BUILD_H -#define BUILDNR 9666 -#define OS_FREEBSD +#define BUILDNR 9669 +#define OS_LINUX #endif diff --git a/src/core/convert.c b/src/core/convert.c index 6844047..cf8987e 100644 --- a/src/core/convert.c +++ b/src/core/convert.c @@ -2,11 +2,11 @@ *: File: ./src/core/convert.c *: A simple interpreter *: - *: WWW : http://fype.buetow.org + *: WWW : http://fype.buetow.org *: AUTHOR : http://paul.buetow.org *: E-Mail : fype at dev.buetow.org *: - *: Copyright (c) 2005 - 2008, Paul Buetow + *: Copyright (c) 2005 - 2009, Dipl.-Inform. (FH) Paul C. Buetow *: All rights reserved. *: *: Redistribution and use in source and binary forms, with or without modi- @@ -16,7 +16,7 @@ *: * Redistributions in binary form must reproduce the above copyright *: notice, this list of conditions and the following disclaimer in the *: documentation and/or other materials provided with the distribution. - *: * Neither the name of P. B. Labs nor the names of its contributors may + *: * Neither the name of buetow.org nor the names of its contributors may *: be used to endorse or promote products derived from this software *: without specific prior written permission. *: diff --git a/src/core/convert.h b/src/core/convert.h index ed153d5..9dcf23e 100644 --- a/src/core/convert.h +++ b/src/core/convert.h @@ -2,11 +2,11 @@ *: File: ./src/core/convert.h *: A simple interpreter *: - *: WWW : http://fype.buetow.org + *: WWW : http://fype.buetow.org *: AUTHOR : http://paul.buetow.org *: E-Mail : fype at dev.buetow.org *: - *: Copyright (c) 2005 - 2008, Paul Buetow + *: Copyright (c) 2005 - 2009, Dipl.-Inform. (FH) Paul C. Buetow *: All rights reserved. *: *: Redistribution and use in source and binary forms, with or without modi- @@ -16,7 +16,7 @@ *: * Redistributions in binary form must reproduce the above copyright *: notice, this list of conditions and the following disclaimer in the *: documentation and/or other materials provided with the distribution. - *: * Neither the name of P. B. Labs nor the names of its contributors may + *: * Neither the name of buetow.org nor the names of its contributors may *: be used to endorse or promote products derived from this software *: without specific prior written permission. *: diff --git a/src/core/function.c b/src/core/function.c index f16e74a..70166ed 100644 --- a/src/core/function.c +++ b/src/core/function.c @@ -2,11 +2,11 @@ *: File: ./src/core/function.c *: A simple interpreter *: - *: WWW : http://fype.buetow.org + *: WWW : http://fype.buetow.org *: AUTHOR : http://paul.buetow.org *: E-Mail : fype at dev.buetow.org *: - *: Copyright (c) 2005 - 2008, Paul Buetow + *: Copyright (c) 2005 - 2009, Dipl.-Inform. (FH) Paul C. Buetow *: All rights reserved. *: *: Redistribution and use in source and binary forms, with or without modi- @@ -16,7 +16,7 @@ *: * Redistributions in binary form must reproduce the above copyright *: notice, this list of conditions and the following disclaimer in the *: documentation and/or other materials provided with the distribution. - *: * Neither the name of P. B. Labs nor the names of its contributors may + *: * Neither the name of buetow.org nor the names of its contributors may *: be used to endorse or promote products derived from this software *: without specific prior written permission. *: diff --git a/src/core/function.h b/src/core/function.h index 6235d97..748ebce 100644 --- a/src/core/function.h +++ b/src/core/function.h @@ -2,11 +2,11 @@ *: File: ./src/core/function.h *: A simple interpreter *: - *: WWW : http://fype.buetow.org + *: WWW : http://fype.buetow.org *: AUTHOR : http://paul.buetow.org *: E-Mail : fype at dev.buetow.org *: - *: Copyright (c) 2005 - 2008, Paul Buetow + *: Copyright (c) 2005 - 2009, Dipl.-Inform. (FH) Paul C. Buetow *: All rights reserved. *: *: Redistribution and use in source and binary forms, with or without modi- @@ -16,7 +16,7 @@ *: * Redistributions in binary form must reproduce the above copyright *: notice, this list of conditions and the following disclaimer in the *: documentation and/or other materials provided with the distribution. - *: * Neither the name of P. B. Labs nor the names of its contributors may + *: * Neither the name of buetow.org nor the names of its contributors may *: be used to endorse or promote products derived from this software *: without specific prior written permission. *: diff --git a/src/core/functions.c b/src/core/functions.c index e534e9a..82efc4f 100644 --- a/src/core/functions.c +++ b/src/core/functions.c @@ -2,11 +2,11 @@ *: File: ./src/core/functions.c *: A simple interpreter *: - *: WWW : http://fype.buetow.org + *: WWW : http://fype.buetow.org *: AUTHOR : http://paul.buetow.org *: E-Mail : fype at dev.buetow.org *: - *: Copyright (c) 2005 - 2008, Paul Buetow + *: Copyright (c) 2005 - 2009, Dipl.-Inform. (FH) Paul C. Buetow *: All rights reserved. *: *: Redistribution and use in source and binary forms, with or without modi- @@ -16,7 +16,7 @@ *: * Redistributions in binary form must reproduce the above copyright *: notice, this list of conditions and the following disclaimer in the *: documentation and/or other materials provided with the distribution. - *: * Neither the name of P. B. Labs nor the names of its contributors may + *: * Neither the name of buetow.org nor the names of its contributors may *: be used to endorse or promote products derived from this software *: without specific prior written permission. *: diff --git a/src/core/functions.h b/src/core/functions.h index fc7a138..4e00dc2 100644 --- a/src/core/functions.h +++ b/src/core/functions.h @@ -2,11 +2,11 @@ *: File: ./src/core/functions.h *: A simple interpreter *: - *: WWW : http://fype.buetow.org + *: WWW : http://fype.buetow.org *: AUTHOR : http://paul.buetow.org *: E-Mail : fype at dev.buetow.org *: - *: Copyright (c) 2005 - 2008, Paul Buetow + *: Copyright (c) 2005 - 2009, Dipl.-Inform. (FH) Paul C. Buetow *: All rights reserved. *: *: Redistribution and use in source and binary forms, with or without modi- @@ -16,7 +16,7 @@ *: * Redistributions in binary form must reproduce the above copyright *: notice, this list of conditions and the following disclaimer in the *: documentation and/or other materials provided with the distribution. - *: * Neither the name of P. B. Labs nor the names of its contributors may + *: * Neither the name of buetow.org nor the names of its contributors may *: be used to endorse or promote products derived from this software *: without specific prior written permission. *: diff --git a/src/core/garbage.c b/src/core/garbage.c index 544cbcb..23c73b8 100644 --- a/src/core/garbage.c +++ b/src/core/garbage.c @@ -2,11 +2,11 @@ *: File: ./src/core/garbage.c *: A simple interpreter *: - *: WWW : http://fype.buetow.org + *: WWW : http://fype.buetow.org *: AUTHOR : http://paul.buetow.org *: E-Mail : fype at dev.buetow.org *: - *: Copyright (c) 2005 - 2008, Paul Buetow + *: Copyright (c) 2005 - 2009, Dipl.-Inform. (FH) Paul C. Buetow *: All rights reserved. *: *: Redistribution and use in source and binary forms, with or without modi- @@ -16,7 +16,7 @@ *: * Redistributions in binary form must reproduce the above copyright *: notice, this list of conditions and the following disclaimer in the *: documentation and/or other materials provided with the distribution. - *: * Neither the name of P. B. Labs nor the names of its contributors may + *: * Neither the name of buetow.org nor the names of its contributors may *: be used to endorse or promote products derived from this software *: without specific prior written permission. *: diff --git a/src/core/garbage.h b/src/core/garbage.h index 2f93982..f7533eb 100644 --- a/src/core/garbage.h +++ b/src/core/garbage.h @@ -2,11 +2,11 @@ *: File: ./src/core/garbage.h *: A simple interpreter *: - *: WWW : http://fype.buetow.org + *: WWW : http://fype.buetow.org *: AUTHOR : http://paul.buetow.org *: E-Mail : fype at dev.buetow.org *: - *: Copyright (c) 2005 - 2008, Paul Buetow + *: Copyright (c) 2005 - 2009, Dipl.-Inform. (FH) Paul C. Buetow *: All rights reserved. *: *: Redistribution and use in source and binary forms, with or without modi- @@ -16,7 +16,7 @@ *: * Redistributions in binary form must reproduce the above copyright *: notice, this list of conditions and the following disclaimer in the *: documentation and/or other materials provided with the distribution. - *: * Neither the name of P. B. Labs nor the names of its contributors may + *: * Neither the name of buetow.org nor the names of its contributors may *: be used to endorse or promote products derived from this software *: without specific prior written permission. *: diff --git a/src/core/interpret.c b/src/core/interpret.c index e471e72..49fab69 100644 --- a/src/core/interpret.c +++ b/src/core/interpret.c @@ -2,11 +2,11 @@ *: File: ./src/core/interpret.c *: A simple interpreter *: - *: WWW : http://fype.buetow.org + *: WWW : http://fype.buetow.org *: AUTHOR : http://paul.buetow.org *: E-Mail : fype at dev.buetow.org *: - *: Copyright (c) 2005 - 2008, Paul Buetow + *: Copyright (c) 2005 - 2009, Dipl.-Inform. (FH) Paul C. Buetow *: All rights reserved. *: *: Redistribution and use in source and binary forms, with or without modi- @@ -16,7 +16,7 @@ *: * Redistributions in binary form must reproduce the above copyright *: notice, this list of conditions and the following disclaimer in the *: documentation and/or other materials provided with the distribution. - *: * Neither the name of P. B. Labs nor the names of its contributors may + *: * Neither the name of buetow.org nor the names of its contributors may *: be used to endorse or promote products derived from this software *: without specific prior written permission. *: @@ -83,10 +83,12 @@ Interpret* interpret_new(List *p_list_token, Hash *p_hash_syms) { Interpret *p_interpret = malloc(sizeof(Interpret)); + /* No subprocess */ if (p_hash_syms != NULL) { p_interpret->p_scope = scope_new(p_hash_syms); p_interpret->b_scope_delete = true; + /* Subprocess */ } else { p_interpret->p_scope = NULL; p_interpret->b_scope_delete = false; diff --git a/src/core/interpret.h b/src/core/interpret.h index 28c6f2b..6ac035a 100644 --- a/src/core/interpret.h +++ b/src/core/interpret.h @@ -2,11 +2,11 @@ *: File: ./src/core/interpret.h *: A simple interpreter *: - *: WWW : http://fype.buetow.org + *: WWW : http://fype.buetow.org *: AUTHOR : http://paul.buetow.org *: E-Mail : fype at dev.buetow.org *: - *: Copyright (c) 2005 - 2008, Paul Buetow + *: Copyright (c) 2005 - 2009, Dipl.-Inform. (FH) Paul C. Buetow *: All rights reserved. *: *: Redistribution and use in source and binary forms, with or without modi- @@ -16,7 +16,7 @@ *: * Redistributions in binary form must reproduce the above copyright *: notice, this list of conditions and the following disclaimer in the *: documentation and/or other materials provided with the distribution. - *: * Neither the name of P. B. Labs nor the names of its contributors may + *: * Neither the name of buetow.org nor the names of its contributors may *: be used to endorse or promote products derived from this software *: without specific prior written permission. *: diff --git a/src/core/reference.c b/src/core/reference.c index fdbbb86..3eccaaa 100644 --- a/src/core/reference.c +++ b/src/core/reference.c @@ -2,11 +2,11 @@ *: File: ./src/core/reference.c *: A simple interpreter *: - *: WWW : http://fype.buetow.org + *: WWW : http://fype.buetow.org *: AUTHOR : http://paul.buetow.org *: E-Mail : fype at dev.buetow.org *: - *: Copyright (c) 2005 - 2008, Paul Buetow + *: Copyright (c) 2005 - 2009, Dipl.-Inform. (FH) Paul C. Buetow *: All rights reserved. *: *: Redistribution and use in source and binary forms, with or without modi- @@ -16,7 +16,7 @@ *: * Redistributions in binary form must reproduce the above copyright *: notice, this list of conditions and the following disclaimer in the *: documentation and/or other materials provided with the distribution. - *: * Neither the name of P. B. Labs nor the names of its contributors may + *: * Neither the name of buetow.org nor the names of its contributors may *: be used to endorse or promote products derived from this software *: without specific prior written permission. *: diff --git a/src/core/reference.h b/src/core/reference.h index 0d16a2a..6cda63d 100644 --- a/src/core/reference.h +++ b/src/core/reference.h @@ -2,11 +2,11 @@ *: File: ./src/core/reference.h *: A simple interpreter *: - *: WWW : http://fype.buetow.org + *: WWW : http://fype.buetow.org *: AUTHOR : http://paul.buetow.org *: E-Mail : fype at dev.buetow.org *: - *: Copyright (c) 2005 - 2008, Paul Buetow + *: Copyright (c) 2005 - 2009, Dipl.-Inform. (FH) Paul C. Buetow *: All rights reserved. *: *: Redistribution and use in source and binary forms, with or without modi- @@ -16,7 +16,7 @@ *: * Redistributions in binary form must reproduce the above copyright *: notice, this list of conditions and the following disclaimer in the *: documentation and/or other materials provided with the distribution. - *: * Neither the name of P. B. Labs nor the names of its contributors may + *: * Neither the name of buetow.org nor the names of its contributors may *: be used to endorse or promote products derived from this software *: without specific prior written permission. *: diff --git a/src/core/scanner.c b/src/core/scanner.c index 266650c..96d3756 100644 --- a/src/core/scanner.c +++ b/src/core/scanner.c @@ -2,11 +2,11 @@ *: File: ./src/core/scanner.c *: A simple interpreter *: - *: WWW : http://fype.buetow.org + *: WWW : http://fype.buetow.org *: AUTHOR : http://paul.buetow.org *: E-Mail : fype at dev.buetow.org *: - *: Copyright (c) 2005 - 2008, Paul Buetow + *: Copyright (c) 2005 - 2009, Dipl.-Inform. (FH) Paul C. Buetow *: All rights reserved. *: *: Redistribution and use in source and binar |
