diff --git a/Aer-v1.0-Specification.md b/Aer-v1.0-Specification.md index 089eb06..b9d5710 100644 --- a/Aer-v1.0-Specification.md +++ b/Aer-v1.0-Specification.md @@ -59,7 +59,7 @@ A keyword is a reserved word in the Aer language. Keywords are used to perform a Available keywords: as, break, case, catch, class, clone, const, continue, default, do, else, elseif, extends, final, finally, for, foreach, if, implements, interface, instanceof, namespace, new, private, protected, public, static, switch, throw, try, using, virtual, while -Next we have other language constructs: define() empty(), exit(), eval(), include(), include_once(), isset(), list(), require(), require_once(), return(), print(), unset() +Next we have other language constructs: define() empty(), exit(), eval(), import(), include(), isset(), list(), require(), return(), print(), unset() #### 3.3.4 Semicolon A semicolon is used to mark the end of a statement in Aer language. It is mandatory. @@ -120,13 +120,13 @@ Variable interpolation is replacing variables with their values inside string li In above example, the $age variable is replaced with the value 20 in the string enclosed by double quotes. However, this does not work if single quotes are used. In this case, no interpolation happens and no special characters are working. ### 4.8. Including Files -Aer code can be split in multiple files for bigger scripts. There are four statements in Aer, which allows to join various Aer files: +Aer code can be split in multiple files for bigger scripts. There are two statements in Aer, which allows to join various Aer files: * include - * include_once * require - * require_one -All of above listed builtin functions can be used from any place, even outside of the class definition. +The include() function includes and evaluates the specified file during the execution of the script. Files are included based on the file path given or, if none is given the include_path specified. If the file isn't found in the include_path include() will finally check in the calling script's own directory and the current working directory before failing. The include() construct will emit a warning if it cannot find a file. +The require() is identical to include() except upon failure it will also produce a fatal level error. In other words, it will halt the script whereas include() only emits a warning which allowsthe script to continue. +Both of above listed builtin functions can be used only from methods. ## 5. Data Types & Pseudo Types ### 5.1. Boolean Values