SwiftStudies / OysterKit

OysterKit is a framework that provides a native Swift scanning, lexical analysis, and parsing capabilities. In addition it provides a language that can be used to rapidly define the rules used by OysterKit called STLR
BSD 2-Clause "Simplified" License
177 stars 23 forks source link

New simplified parsing, streaming API available #42

Closed SwiftStudies closed 6 years ago

SwiftStudies commented 6 years ago

The legacy and current APIs are now both available. The legacy API has been marked as deprecated and will generate build warnings for consumers using it.

This deprecated API could be removed 0.3..<1.0, I haven't decided yet.

This commit, due to its new API is intended to represent v2.0

codecov[bot] commented 6 years ago

Codecov Report

Merging #42 into master will increase coverage by 0.78%. The diff coverage is 61.08%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #42      +/-   ##
==========================================
+ Coverage   55.45%   56.24%   +0.78%     
==========================================
  Files          41       42       +1     
  Lines        4295     4372      +77     
==========================================
+ Hits         2382     2459      +77     
  Misses       1913     1913
Flag Coverage Δ
#ExampleLanguages 96.72% <ø> (ø) :arrow_up:
#OysterKit 41.05% <63.49%> (+2.11%) :arrow_up:
#STLR 56.24% <61.08%> (+0.78%) :arrow_up:
#stlrc 56.24% <61.08%> (+0.78%) :arrow_up:
Impacted Files Coverage Δ
...Intermediate Representations/HeterogenousAST.swift 51.85% <ø> (-25.93%) :arrow_down:
.../Intermediate Representations/HomogenousNode.swift 40% <ø> (-20%) :arrow_down:
Sources/OysterKit/Parsing/Stream.swift 88.88% <ø> (ø) :arrow_up:
Sources/OysterKit/Parsing/Language.swift 54.02% <ø> (ø) :arrow_up:
...ntermediate Representations/HeterogenousNode.swift 48.21% <ø> (ø) :arrow_up:
...g/Intermediate Representations/HomogenousAST.swift 67.3% <ø> (ø) :arrow_up:
Sources/OysterKit/Parsing/Nodes.swift 87.5% <100%> (+5.68%) :arrow_up:
Sources/OysterKit/Rules/ScannerRules.swift 86.66% <100%> (+6.66%) :arrow_up:
Sources/STLR/STLR.swift 97.97% <100%> (ø) :arrow_up:
Sources/STLR/STLR Data Model.swift 59.43% <12.5%> (-1.6%) :arrow_down:
... and 16 more

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 bb9826c...5f9ed98. Read the comment docs.