• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Squarespace / template-engine
95%
master: 97%

Build:
Build:
LAST BUILD BRANCH: v2.8.11
DEFAULT BRANCH: master
Repo Added 26 Dec 2017 02:20PM UTC
Files 57
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH expressions
branch: expressions
CHANGE BRANCH
x
Reset
  • expressions
  • 1.x
  • calc
  • expr-balanced-parens
  • expr-debug
  • fix-ci
  • include-inst
  • master
  • ph/revert-variants-select
  • ph/revert-variants-select-2
  • typescript
  • v1.0.2
  • v1.0.3
  • v1.0.4
  • v1.0.5
  • v1.0.6
  • v1.0.7
  • v1.0.8
  • v1.0.9
  • v1.1.0
  • v1.1.2
  • v1.1.3
  • v1.1.4
  • v1.1.5
  • v1.1.7
  • v1.2.0
  • v1.2.1
  • v1.3.0
  • v1.3.1
  • v1.3.2
  • v1.3.3
  • v1.3.4
  • v1.4.0
  • v1.5.0
  • v1.5.1
  • v1.5.2
  • v1.5.3
  • v1.5.4
  • v1.5.5
  • v1.5.6
  • v1.5.7
  • v1.6.0
  • v1.6.1
  • v1.7.0
  • v1.8.0
  • v1.8.1
  • v1.8.2
  • v1.8.3
  • v1.8.4
  • v1.8.5
  • v2
  • v2.0.0
  • v2.0.0-beta.0
  • v2.0.0-beta.1
  • v2.0.0-beta.2
  • v2.0.0-beta.3
  • v2.0.0-beta.4
  • v2.0.0-beta.5
  • v2.0.0-beta.6
  • v2.0.0-beta.7
  • v2.0.0-beta.8
  • v2.0.1
  • v2.0.2
  • v2.0.3
  • v2.0.4
  • v2.0.5
  • v2.0.6
  • v2.1.10
  • v2.1.11
  • v2.1.12
  • v2.1.13
  • v2.1.14
  • v2.1.15
  • v2.1.6
  • v2.1.7
  • v2.1.8
  • v2.1.9
  • v2.2.0
  • v2.2.1
  • v2.3.0
  • v2.3.1
  • v2.3.2
  • v2.3.3
  • v2.4.0
  • v2.5.0
  • v2.6.0
  • v2.7.0
  • v2.7.1
  • v2.7.2
  • v2.7.3
  • v2.7.4
  • v2.8.0
  • v2.8.1
  • v2.8.10
  • v2.8.11
  • v2.8.2
  • v2.8.3
  • v2.8.4
  • v2.8.5
  • v2.8.6
  • v2.8.7
  • v2.8.8
  • v2.8.9
  • zg/CMS-38077-image-srcset-no-data-attr

pending completion
328

push

travis-ci

phensley
Expression evaluation instruction

Expression evaluation using an extended version of Dijkstra's "shunting
yard" algorithm with JavaScript semantics. This algorithm was chosen as
it is simple, sufficient, and can be implemented compactly, minimizing
the size of the code and making it easier to verify correct.

Features:

 - Number, Boolean, Null, and String types
 - String parsing of backslash char, hex, and unicode escapes
   - unicode escapes can contain up to 6 hex characters with a
     value of <= 0x10FFFF
   - "\n", "\x20", "\u2018", "\u01f600" are all valid strings
 - Decimal and hex numbers
 - Assignment statements
 - Variable references
 - Operator precedence
 - Common math, binary and logical operators
 - Both strict and non-strict equality
 - Nesting of sub-expressions with parenthesis
 - Single pass evaluation of multiple semicolon-delimited expressions
 - String equality and concatenation
 - Function calls with a variable number of arguments
   - example: max(1, 2, 3, ..., N) is accepted
 - Type conversion functions
 - Common constants (pi, e, etc)
 - Configurable parse and reduce limits
   - maximum tokens an expression can contain
   - maximum length of a concatenated string

The algorithm assumes the expression is well-formed and performs minimal
validation.  A malformed expression should either terminate evaluation
early or produce no value.

1893 of 2084 branches covered (90.83%)

Branch coverage included in aggregate %.

4719 of 4910 relevant lines covered (96.11%)

19258.8 hits per line

Relevant lines Covered
Build:
Build:
4910 RELEVANT LINES 4719 COVERED LINES
19258.8 HITS PER LINE
Source Files on expressions
  • Tree
  • List 57
  • Changed 6
  • Source Changed 1
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
328 expressions Expression evaluation instruction Expression evaluation using an extended version of Dijkstra's "shunting yard" algorithm with JavaScript semantics. This algorithm was chosen as it is simple, sufficient, and can be implemented compactly, minimizi... push 16 Dec 2020 08:55PM UTC phensley travis-ci pending completion  
327 expressions Merge fb3709c13 into 90f89ef9e Pull #4 14 Dec 2020 09:55PM UTC web-flow travis-ci pending completion  
326 expressions Expression evaluation instruction Expression evaluation using an extended version of Dijkstra's "shunting yard" algorithm with JavaScript semantics. This algorithm was chosen as it is simple, sufficient, and can be implemented compactly, minimizi... push 14 Dec 2020 09:54PM UTC phensley travis-ci pending completion  
324 expressions Merge b5ec25a98 into 2ece5d7eb Pull #4 14 Dec 2020 02:46PM UTC web-flow travis-ci pending completion  
323 expressions Expression evaluation instruction Expression evaluation using an extended version of Dijkstra's "shunting yard" algorithm with JavaScript semantics. This algorithm was chosen as it is simple, sufficient, and can be implemented compactly, minimizi... push 14 Dec 2020 02:46PM UTC phensley travis-ci pending completion  
319 expressions Expression evaluation instruction Expression evaluation using an extended version of Dijkstra's "shunting yard" algorithm with JavaScript semantics. This algorithm was chosen as it is simple, sufficient, and can be implemented compactly, minimizi... push 11 Dec 2020 07:14PM UTC phensley travis-ci pending completion  
320 expressions Merge 435e8e151 into 2ece5d7eb Pull #4 11 Dec 2020 07:14PM UTC web-flow travis-ci pending completion  
318 expressions Merge 1a1046adf into 2ece5d7eb Pull #4 11 Dec 2020 03:25PM UTC web-flow travis-ci pending completion  
317 expressions Expression evaluation instruction Expression evaluation using an extended version of Dijkstra's "shunting yard" algorithm with JavaScript semantics. This algorithm was chosen as it is simple, sufficient, and can be implemented compactly, minimizi... push 11 Dec 2020 03:25PM UTC phensley travis-ci pending completion  
316 expressions Merge cfb16bc9d into 2ece5d7eb Pull #4 10 Dec 2020 02:06PM UTC web-flow travis-ci pending completion  
See All Builds (350)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc