neugram / ng

scripting language integrated with Go
https://neugram.io
BSD 2-Clause "Simplified" License
918 stars 43 forks source link

parser,syntax/token,typecheck: introduce '{|' and '|}' tokens #213

Closed sbinet closed 6 years ago

sbinet commented 6 years ago

This CL introduces 2 new tokens: '{|' and '|}' to ease parsing and lift ambiguities with the support for the binary '|' oeprator.

codecov-io commented 6 years ago

Codecov Report

Merging #213 into master will decrease coverage by 0.02%. The diff coverage is 21.05%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #213      +/-   ##
==========================================
- Coverage   50.68%   50.65%   -0.03%     
==========================================
  Files          22       22              
  Lines       10163    10172       +9     
==========================================
+ Hits         5151     5153       +2     
- Misses       4510     4517       +7     
  Partials      502      502
Impacted Files Coverage Δ
parser/parser.go 70.26% <11.11%> (ø) :arrow_up:
parser/scanner.go 69.12% <30%> (-0.86%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update e1001b7...3ac7bfd. Read the comment docs.