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

Squarespace / template-engine
94%
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 calc
branch: calc
CHANGE BRANCH
x
Reset
  • calc
  • 1.x
  • expr-balanced-parens
  • expr-debug
  • expressions
  • 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
306

push

travis-ci

phensley
Expression evaluation instruction

Expression evaluation using an extended version of Dijkstra's "shunting
yard" algorithm with JavaScript semantics.  Dijkstra's 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
   - "\n", "\x20", "\u2018", "\u0001f600" are all valid strings
 - Decimal and hex numbers
 - Assignment statements
 - Variable references
 - Operator precedence
 - Common math, binary and logical operators
 - Strict equality / inequality only
 - 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)

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

1800 of 1994 branches covered (90.27%)

Branch coverage included in aggregate %.

4626 of 4820 relevant lines covered (95.98%)

199.87 hits per line

Relevant lines Covered
Build:
Build:
4820 RELEVANT LINES 4626 COVERED LINES
199.87 HITS PER LINE
Source Files on calc
  • Tree
  • List 57
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
306 calc Expression evaluation instruction Expression evaluation using an extended version of Dijkstra's "shunting yard" algorithm with JavaScript semantics. Dijkstra's algorithm was chosen as it is simple, sufficient, and can be implemented compactly, m... push 04 Dec 2020 09:35PM UTC phensley travis-ci pending completion  
305 calc Expression evaluation instruction Expression evaluation using an extended version of Dijkstra's "shunting yard" algorithm with JavaScript semantics. Dijkstra's algorithm was chosen as it is simple, sufficient, and can be implemented compactly, m... push 04 Dec 2020 06:07PM UTC phensley 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