From a82f716c1a7c694e19a5db63dcd4b6a536adb4da Mon Sep 17 00:00:00 2001 From: "Mike D. Lowis" Date: Fri, 21 Sep 2012 16:42:00 -0400 Subject: [PATCH] Removed unnecessary files/folders --- LANGUAGE.md | 228 ---------------------------------------------------- deps/DUMMY | 0 docs/DUMMY | 0 res/DUMMY | 0 tools/DUMMY | 0 5 files changed, 228 deletions(-) delete mode 100644 LANGUAGE.md delete mode 100644 deps/DUMMY delete mode 100644 docs/DUMMY delete mode 100644 res/DUMMY delete mode 100644 tools/DUMMY diff --git a/LANGUAGE.md b/LANGUAGE.md deleted file mode 100644 index 584c8ff..0000000 --- a/LANGUAGE.md +++ /dev/null @@ -1,228 +0,0 @@ -DLang 0.3 Language Specification -============================================== - -Lanugage Overview ----------------------------------------------- - -### Basic Syntax - -Datatypes ----------------------------------------------- - -### Prototype Objects - -A Work In Progress - -### Basic Types -#### Numbers - -Numbers are represented internally as double precision floating point numbers. -The syntax is very similar to lanugages like C, C++, Java, and Javascript. -Here are some examples for defining numbers: - - # Integer representations - 4 - -4 - - # Floating point representations - 0.4 - -0.4 - - # Floating point representations with exponents - 4.0e3 - 4.0e-3 - -4.0e3 - -4.0e-3 - -#### Characters - - 'A' - - \a Bell - \b Backspace - \f Form feed - \n New line - \r Carriage return - \t Tab \v Vertical Tab - \\ Backslash - \" Double Quote - \x Hexidecimal value - \u Unicode character - -#### Symbols - - $some_symbol - -#### Boolean Values - - True - False - Nil - -### Collections -#### Lists - - () # An empty list - (1,) # A list with one element (Note: the trailing comma - # distinguishes this from a grouping expression) - (1, 2) # A list with two elements - ('a', 1) # A list with two elements of different types - -#### Vectors - - [] # An empty vector - [1] # A vector with oni element - [1, 2] # A vector with two number elements - ['a', 1] # A vector with two elements of different types - -#### Maps - - # A Map with homogeneous keys - { - "foo": "bar", - "bar": "foo" - } - - # A Map with heterogeneous keys - { - $foo: 1.5, - "bar": 5.1 - } - -#### Strings - - "This is a string\n" - -### Blocks -#### Definition and Usage - - add2 = {|a| - a + 2 # Adds 2 to the argument and returns the result - } - - add2(5) # Returns 7 - -Anonymous functions and immediate execution - - ({|a| a + 2})(5) # Returns 7 - -#### Lexical Scoping - - create_adder = {|a| - # Creates and returns a new function that adds a to the value passed - # into the new function - {|b| a + b } - } - - (create_adder(2))(5) # Returns 7 - -#### Performance and Behavior - -A Work In Progress - -### Ports - -A Work In Progress - -Operations and Operators ----------------------------------------------- - -### Definition and Assignment -#### Definition -#### Assignment - -### Arithmetic Operators -#### Addition -#### Subtraction -#### Multiplication -#### Division - -### Logical Operators - -### Comparison Operators -### Indexing and Grouping Operators -### Member Access -### Operator Precedence -### Operator Definition and Overloading - -A Work In Progress - -Modules ----------------------------------------------- - -A Work In Progress - -Macros ----------------------------------------------- - -### Defining Macros -### Using Macros - -Builtin Functions ----------------------------------------------- - -Builtin Macros ----------------------------------------------- - -Formal Syntax and Semantics ----------------------------------------------- - -### DLang EBNF Grammar - - Program = Expression* - - Expression = MacroDefinition - | AssignExpr - - AssignExpr = MacroExpansion - | LogicalExpr ':=' LogicalExpr - | LogicalExpr '=' LogicalExpr - - LogicalExpr = CompExpr (('&&' | '||') CompExpr)* - - CompExpr = AddSubExpr (('==' | '!=' | '<' | '>' | '<=' | '>=') AddSubExpr)* - - AddSubExpr = MulDivExpr (('+' | '-') MulDivExpr)* - - MulDivExpr = UnaryExpr (('*' | '/') UnaryExpr)* - - UnaryExpr = '!' GroupExpr - | GroupExpr - - GroupExpr = '(' LogicalExpr ')' - | '(' LogicalExpr ')' '(' ExpList ')' - | '(' LogicalExpr ')' '[' LogicalExpr ']' - | Literal - | Literal '[' LogicalExpr ']' - - MemberExpr = Literal '.' LogicalExpr - - Literal = MapLiteral - | VectorLiteral - | ListLiteral - | FuncLiteral - | ID - | NUM - | CHAR - | STRING - | SYMBOL - - MapLiteral = '{' (Literal ':' AssignExpr)* '}' - - VectorLiteral = '[' ExpList ']' - - ListLiteral = '(' ExpList ')' - - FuncLiteral = '{' ExpBlock '}' - | '{' '|' ExpList '|' ExpBlock '}' - - MacroDefinition = '%' ID '[' MacroParamList ']' - - MacroPatternList = MacroPattern (',' MacroPattern)* - - MacroPattern = '(' ID+ ')' ':' LogicalExpr - - ExpList = (GroupExpr (',' GroupExpr)*)? - - ExpBlock = Expression* - diff --git a/deps/DUMMY b/deps/DUMMY deleted file mode 100644 index e69de29..0000000 diff --git a/docs/DUMMY b/docs/DUMMY deleted file mode 100644 index e69de29..0000000 diff --git a/res/DUMMY b/res/DUMMY deleted file mode 100644 index e69de29..0000000 diff --git a/tools/DUMMY b/tools/DUMMY deleted file mode 100644 index e69de29..0000000 -- 2.52.0