├── .swift-version
├── .version
├── Examples
├── .swiftlint.yml
├── TemplateExample
│ ├── Tests
│ │ ├── TemplateExampleTests
│ │ │ ├── template.txt
│ │ │ ├── import.txt
│ │ │ └── TemplateExampleComponentTests.swift
│ │ ├── LinuxMain.swift
│ │ └── .swiftlint.yml
│ ├── .gitignore
│ ├── README.md
│ └── Package.swift
├── ColorParserExample
│ ├── .gitignore
│ ├── README.md
│ ├── Tests
│ │ ├── .swiftlint.yml
│ │ ├── LinuxMain.swift
│ │ └── ColorParserExampleTests
│ │ │ └── ColorParserExampleTests.swift
│ ├── Package.swift
│ └── Sources
│ │ └── ColorParserExample
│ │ └── ColorParserExample.swift
└── AttributedStringExample
│ ├── .gitignore
│ ├── README.md
│ ├── Tests
│ ├── .swiftlint.yml
│ ├── LinuxMain.swift
│ └── AttributedStringExampleTests
│ │ └── AttributedStringExampleTests.swift
│ ├── Package.swift
│ └── Sources
│ └── AttributedStringExample
│ └── TemplateExample.swift
├── Scripts
├── .gitignore
├── Sources
│ └── Automation
│ │ ├── main.swift
│ │ ├── Error.swift
│ │ ├── Travis.swift
│ │ └── Shell.swift
├── .swiftlint.yml
├── ci.sh
├── git_auth.sh
└── Package.swift
├── github_rsa.enc
├── Documentation
├── Interpreter engine details.md
├── Example projects.md
├── Tips & Tricks.md
├── Template evaluator.md
└── Strongly-typed evaluator.md
├── Tests
├── .swiftlint.yml
├── LinuxMain.swift
└── EvalTests
│ ├── Utils.swift
│ ├── UnitTests
│ ├── LiteralTests.swift
│ ├── FunctionTests.swift
│ ├── DataTypeTests.swift
│ ├── UtilTests.swift
│ ├── VariableProcessor.swift
│ ├── MatchStatementTests.swift
│ ├── VariableTests.swift
│ ├── MatcherTests.swift
│ ├── InterpreterContextTests.swift
│ ├── MatchResultTests.swift
│ ├── TypedInterpreterTests.swift
│ ├── TemplateInterpreterTests.swift
│ ├── KeywordTests.swift
│ └── PatternTests.swift
│ └── IntegrationTests
│ ├── PerformanceTest.swift
│ ├── Suffix.swift
│ └── TemplateTests.swift
├── .gitignore
├── Eval.playground
├── playground.xcworkspace
│ └── contents.xcworkspacedata
├── contents.xcplayground
├── Contents.swift
├── xcshareddata
│ └── xcschemes
│ │ └── Playground.xcscheme
└── Sources
│ ├── Helpers.swift
│ └── TypesAndFunctions.swift
├── Eval.xcworkspace
├── contents.xcworkspacedata
└── xcshareddata
│ └── IDEWorkspaceChecks.plist
├── .codecov.yml
├── .travis.yml
├── Eval.xcodeproj
├── xcshareddata
│ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── Eval-Package.xcscheme
├── Eval_Info.plist
└── EvalTests_Info.plist
├── Package.swift
├── Gemfile
├── .jazzy.yml
├── Eval.podspec
├── .github
└── .config.yml
├── Sources
└── Eval
│ ├── Utilities
│ ├── Utils.swift
│ ├── MatchResult.swift
│ └── Pattern.swift
│ ├── TemplateInterpreter.swift
│ └── Common.swift
├── CONTRIBUTING.md
├── Dangerfile
├── .swiftlint.yml
├── Gemfile.lock
└── LICENSE.txt
/.swift-version:
--------------------------------------------------------------------------------
1 | 5.0
--------------------------------------------------------------------------------
/.version:
--------------------------------------------------------------------------------
1 | 1.5.0
2 |
--------------------------------------------------------------------------------
/Examples/.swiftlint.yml:
--------------------------------------------------------------------------------
1 | disabled_rules:
2 | - file_header
--------------------------------------------------------------------------------
/Scripts/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | /.build
3 | /Packages
4 | /*.xcodeproj
5 |
--------------------------------------------------------------------------------
/github_rsa.enc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tevelee/Eval/HEAD/github_rsa.enc
--------------------------------------------------------------------------------
/Examples/TemplateExample/Tests/TemplateExampleTests/template.txt:
--------------------------------------------------------------------------------
1 | Hello {{name}}!
--------------------------------------------------------------------------------
/Scripts/Sources/Automation/main.swift:
--------------------------------------------------------------------------------
1 | import Foundation
2 |
3 | Eval.main()
4 |
--------------------------------------------------------------------------------
/Examples/ColorParserExample/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | /.build
3 | /Packages
4 | /*.xcodeproj
--------------------------------------------------------------------------------
/Examples/TemplateExample/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | /.build
3 | /Packages
4 | /*.xcodeproj
5 |
--------------------------------------------------------------------------------
/Examples/AttributedStringExample/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | /.build
3 | /Packages
4 | /*.xcodeproj
--------------------------------------------------------------------------------
/Examples/TemplateExample/README.md:
--------------------------------------------------------------------------------
1 | # TemplateExample
2 |
3 | A description of this package.
4 |
--------------------------------------------------------------------------------
/Examples/TemplateExample/Tests/TemplateExampleTests/import.txt:
--------------------------------------------------------------------------------
1 | {% import 'template.txt' %}
2 | Bye!
--------------------------------------------------------------------------------
/Examples/ColorParserExample/README.md:
--------------------------------------------------------------------------------
1 | # TemplateExample
2 |
3 | A description of this package.
4 |
--------------------------------------------------------------------------------
/Examples/AttributedStringExample/README.md:
--------------------------------------------------------------------------------
1 | # TemplateExample
2 |
3 | A description of this package.
4 |
--------------------------------------------------------------------------------
/Documentation/Interpreter engine details.md:
--------------------------------------------------------------------------------
1 | # Technical details
2 |
3 | ## Interpreter engine
4 |
5 | TBD
6 |
7 | ## Template engine
8 |
9 | TBD
--------------------------------------------------------------------------------
/Tests/.swiftlint.yml:
--------------------------------------------------------------------------------
1 | disabled_rules:
2 | - force_cast
3 | - force_unwrapping
4 | - file_header
5 | - type_name
6 | - explicit_top_level_acl
--------------------------------------------------------------------------------
/Tests/LinuxMain.swift:
--------------------------------------------------------------------------------
1 | @testable import InterpreterTests
2 | import XCTest
3 |
4 | XCTMain([
5 | testCase(InterpreterTests.allTests)
6 | ])
7 |
--------------------------------------------------------------------------------
/Scripts/.swiftlint.yml:
--------------------------------------------------------------------------------
1 | disabled_rules:
2 | - force_try
3 | - file_header
4 | - file_length
5 | - explicit_top_level_acl
6 | - function_body_length
7 |
--------------------------------------------------------------------------------
/Examples/ColorParserExample/Tests/.swiftlint.yml:
--------------------------------------------------------------------------------
1 | disabled_rules:
2 | - force_cast
3 | - force_try
4 | - type_name
5 | - file_header
6 | - explicit_top_level_acl
--------------------------------------------------------------------------------
/Examples/AttributedStringExample/Tests/.swiftlint.yml:
--------------------------------------------------------------------------------
1 | disabled_rules:
2 | - force_cast
3 | - force_try
4 | - type_name
5 | - file_header
6 | - explicit_top_level_acl
--------------------------------------------------------------------------------
/Examples/ColorParserExample/Tests/LinuxMain.swift:
--------------------------------------------------------------------------------
1 | @testable import TemplateExampleTests
2 | import XCTest
3 |
4 | XCTMain([
5 | testCase(TemplateExampleTests.allTests)
6 | ])
7 |
--------------------------------------------------------------------------------
/Examples/TemplateExample/Tests/LinuxMain.swift:
--------------------------------------------------------------------------------
1 | @testable import TemplateExampleTests
2 | import XCTest
3 |
4 | XCTMain([
5 | testCase(TemplateExampleTests.allTests)
6 | ])
7 |
--------------------------------------------------------------------------------
/Examples/AttributedStringExample/Tests/LinuxMain.swift:
--------------------------------------------------------------------------------
1 | @testable import TemplateExampleTests
2 | import XCTest
3 |
4 | XCTMain([
5 | testCase(TemplateExampleTests.allTests)
6 | ])
7 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | /.build
3 | build
4 | /Packages
5 |
6 | xcuserdata
7 | .xcuserstate
8 |
9 | Pods
10 | Package.resolved
11 |
12 | docs
13 | gh-pages
14 | Documentation/Output
--------------------------------------------------------------------------------
/Examples/TemplateExample/Tests/.swiftlint.yml:
--------------------------------------------------------------------------------
1 | disabled_rules:
2 | - force_cast
3 | - force_try
4 | - force_unwrapping
5 | - type_name
6 | - file_header
7 | - explicit_top_level_acl
--------------------------------------------------------------------------------
/Eval.playground/playground.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |