Skip to content

Commit 4cf5c4e

Browse files
authored
Merge pull request #218 from Philippus/add-scala-native-info
Add scala native info
2 parents 3690623 + 1bd323e commit 4cf5c4e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Diff for: README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,23 @@ As of Scala 2.11, this library is a separate jar that can be omitted from Scala
1919
* A more complicated example, [Building a lexer and parser with Scala's Parser Combinators](https://enear.github.io/2016/03/31/parser-combinators/)
2020
* "Combinator Parsing", chapter 33 of [_Programming in Scala, Third Edition_](http://www.artima.com/shop/programming_in_scala), shows how to use this library to parse arithmetic expressions and JSON. The second half of the chapter examines how the library is implemented.
2121

22-
## Adding an SBT dependency
23-
To depend on scala-parser-combinators in SBT, add something like this to your build.sbt:
22+
## Adding an sbt dependency
23+
To depend on scala-parser-combinators in sbt, add something like this to your build.sbt:
2424

2525
```
2626
libraryDependencies += "org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.2"
2727
```
2828

2929
To support multiple Scala versions, see the example in [scala/scala-module-dependency-sample](https://github.com/scala/scala-module-dependency-sample).
3030

31+
### Scala.js and Scala Native
32+
33+
Scala-parser-combinators is also available for Scala.js 0.6+ and Scala Native:
34+
35+
```
36+
libraryDependencies += "org.scala-lang.modules" %%% "scala-parser-combinators" % "1.1.2"
37+
```
38+
3139
## Example
3240

3341
```scala
@@ -57,14 +65,6 @@ object TestSimpleParser extends SimpleParser {
5765
For a detailed unpacking of this example see
5866
[Getting Started](docs/Getting_Started.md).
5967

60-
## ScalaJS support
61-
62-
Scala-parser-combinators directly supports Scala.js 0.6+:
63-
64-
```
65-
libraryDependencies += "org.scala-lang.modules" %%% "scala-parser-combinators" % "1.1.2"
66-
```
67-
6868
## Issues
6969

7070
Many old issues from the Scala JIRA issue tracker have been migrated

0 commit comments

Comments
 (0)