IntroductionDocument ConventionsLexical ConventionsCommentsIdentifiersKeywordsConstantsInteger ConstantsFloat ConstantsBuilt-in ConstantsProgram ParametersProgramModule DefinitionModule DeclarationFunction DefinitionsActivation Function DefinitionsKernel Function DefinitionInter-Module Synaptic ConnectionsExpressionsPrimary expressionsConvolution operator expression ** kernel-call Unary operator - expressionExponential operatorexpression-1 ^ expression-2Multiplicative operatorsexpression-1 * expression-2expression-1 / expression-2Additive operatorsexpression-1 + expression-2expression-1 - expression-2Function CallsBuilt-in functionssincosexpUser-defined functionsMacrossize macrofor macroScopeParallelismFuture AdditionsExamplesImage SharpeningImage MirrorSynapse Language Reference ManualJonathan Willifordjw2389 @ columbia.eduhttp://synapse-lang.googlecode.comContents1 Introduction 22 Document Conventions 23 Lexical Conventions 23.1 Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23.2 Identifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23.3 Keywords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33.4 Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33.4.1 Integer Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33.4.2 Float Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33.4.3 Built-in Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33.5 Program Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Program 34.1 Module Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44.2 Module Declaration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54.3 Function Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54.3.1 Activation Function Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54.3.2 Kernel Function Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54.4 Inter-Module Synaptic Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 Expressions 65.1 Primary expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65.2 Convolution operator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75.2.1 expression ** kernel-call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75.3 Unary operator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75.3.1 - expression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75.4 Exponential operator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85.4.1 expression-1 ˆ expression-2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85.5 Multiplicative operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85.5.1 expression-1 * expression-2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85.5.2 expression-1 / expression-2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85.6 Additive operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . …
View Full Document