Skip to content

Commit

Permalink
SPM only
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Aug 30, 2022
1 parent 16eafa0 commit 0ca9136
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 670 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
matrix:
destination: ["platform=macOS", "platform=iOS Simulator,name=iPhone 8"]
steps:
- uses: actions/checkout@v1
- name: update submodules
run: git submodule update --init
- uses: actions/checkout@v2
- name: xcodebuild test ${{ matrix.destination }}
run: set -o pipefail && xcodebuild test -scheme Flexer -destination "${{ matrix.destination }}" | xcpretty
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "xcconfigs"]
path = xcconfigs
url = https://github.com/mrackwitz/xcconfigs.git
484 changes: 0 additions & 484 deletions Flexer.xcodeproj/project.pbxproj

This file was deleted.

7 changes: 0 additions & 7 deletions Flexer.xcodeproj/project.xcworkspace/contents.xcworkspacedata

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

78 changes: 0 additions & 78 deletions Flexer.xcodeproj/xcshareddata/xcschemes/Flexer.xcscheme

This file was deleted.

22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![Github CI](https://github.com/ChimeHQ/Flexer/workflows/CI/badge.svg)](https://github.com/ChimeHQ/Flexer/actions)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg)](https://github.com/Carthage/Carthage)
[![Build Status][build status badge]][build status]
[![License][license badge]][license]
[![Platforms][platforms badge]][platforms]

# Flexer

Expand All @@ -13,20 +14,12 @@ It turns out that Swift's `Sequence` and `Iterator` concepts work pretty well fo

## Integration

### Swift Package Manager

```swift
dependencies: [
.package(url: "https://github.com/ChimeHQ/Flexer.git")
.package(url: "https://github.com/ChimeHQ/Flexer")
]
```

### Carthage

```
github "ChimeHQ/Flexer"
```

## Look-Ahead

Core to lexing is the ability to look ahead at future tokens without advancing. Flexer implements look-ahead with a protocol called `LookAheadIteratorProtocol`. The whole implementation is inspired by the `lazy` property of `Sequence`, and works very similarly.
Expand Down Expand Up @@ -120,3 +113,10 @@ typealias ExampleTokenLexer = LookAheadSequence<ExampleTokenSequence>
We'd love to hear from you! Get in touch via [twitter](https://twitter.com/chimehq), an issue, or a pull request.

Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.

[build status]: https://github.com/ChimeHQ/Flexer/actions
[build status badge]: https://github.com/ChimeHQ/Flexer/workflows/CI/badge.svg
[license]: https://opensource.org/licenses/BSD-3-Clause
[license badge]: https://img.shields.io/github/license/ChimeHQ/Flexer
[platforms]: https://swiftpackageindex.com/ChimeHQ/Flexer
[platforms badge]: https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FChimeHQ%2FFlexer%2Fbadge%3Ftype%3Dplatforms
1 change: 0 additions & 1 deletion xcconfigs
Submodule xcconfigs deleted from 90aae8

0 comments on commit 0ca9136

Please sign in to comment.