This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AndCondition = head:ConditionStatement tail:(_ '&&' _ ConditionStatement)+ { | |
| const accum = [{...head}]; | |
| tail.reduce((accumulated, element) => { | |
| accumulated.push(element[3]); | |
| return accumulated; | |
| }, accum); | |
| return { op: '&&', predicates: accum }; | |
| } / ConditionStatement |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| OrCondition = head:AndCondition tail:(_ '||' _ AndCondition)+ { | |
| const accum = [{...head}]; | |
| tail.reduce((accumulated, element) => { | |
| accumulated.push(element[3]); | |
| return accumulated; | |
| }, accum); | |
| return { op: '||', predicates: accum }; | |
| } / AndCondition |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FunctionStatement = | |
| func:AllFunctionTokens _ | |
| "("param: (QuestionToken/String/FunctionStatement)")" | |
| { | |
| return { | |
| functionStatement: { | |
| func, | |
| param, | |
| } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ConditionalBooleanStatement | |
| = | |
| "[" _ "if condition" _ "=" _ "'" | |
| conditional: OrCondition | |
| "'" _ "]" | |
| body1: Code _ | |
| "[else]"* _ | |
| body2: Code _ | |
| "[/if]" { | |
| return { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TocToken = "[toc]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UnderlineToken = "[u]" / "[/u]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ConstantToken = "[c#" id:[0-9]+ "]" { | |
| return "[c#" + id.join('') + "]"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| start = Code | |
| Code = token:( | |
| QuestionToken / | |
| VariableToken / | |
| ConstantToken / | |
| UnderlineToken / | |
| TocToken / | |
| HighlightToken / | |
| ConditionalBooleanStatement / |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Create release revision | |
| AWS_VERSION_LABEL="${AWS_ENVIRONMENT_SUFFIX}-release-`date +%Y%m%d-%H%M%S`" | |
| AWS_BUNDLE_NAME="${AWS_VERSION_LABEL}.zip" | |
| # Download Environment Variables | |
| echo "Downloading frontend environment variables for ${AWS_ENVIRONMENT_SUFFIX}..." | |
| aws s3 cp s3://${AWS_S3_BUCKET_NAME}/environment/.env.frontend.${AWS_ENVIRONMENT_SUFFIX} ./apps/mudbay-storeopsportal-fe/.env |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #------------------------------- | |
| # AWS Provider | |
| #------------------------------- | |
| provider "aws" { | |
| profile = "default" | |
| region = "us-east-2" | |
| } | |
| #------------------------------- | |
| # Elastic Beanstalk Application |