|
1 |
| -SourceCode [](https://travis-ci.org/lihaoyi/sourcecode) [](https://gitter.im/lihaoyi/sourcecode?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](https://maven-badges.herokuapp.com/maven-central/com.lihaoyi/sourcecode_2.11) |
| 1 | +SourceCode [](https://gitter.im/lihaoyi/sourcecode?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](https://maven-badges.herokuapp.com/maven-central/com.lihaoyi/sourcecode_2.13) |
2 | 2 | ==========
|
3 | 3 |
|
4 | 4 | ```scala
|
@@ -38,7 +38,7 @@ To this:
|
38 | 38 | By capturing source information you can use to give your objects and function
|
39 | 39 | meaningful names that tell you where they were defined, automatically without
|
40 | 40 | needing you to manually assign a string-ID to every anonymous function or
|
41 |
| -anonymous class you define all over your code bas. |
| 41 | +anonymous class you define all over your code base. |
42 | 42 |
|
43 | 43 | If you like using Sourcecode, you might also enjoy this book by the author which
|
44 | 44 | teaches you Scala in a similarly simple and straightforward way:
|
@@ -79,7 +79,7 @@ The kinds of compilation-time data that `sourcecode` provides are:
|
79 | 79 | you have multiple statements in a `{}` block, `sourcecode.Text` will only
|
80 | 80 | capture the source code for the last expression that gets returned. This
|
81 | 81 | implicit is slightly experimental; be sure to report any bugs you find!
|
82 |
| -- `sourcecode.Args`: the arguments that where provided to the nearest enclosing |
| 82 | +- `sourcecode.Args`: the arguments that were provided to the nearest enclosing |
83 | 83 | method
|
84 | 84 | - `sourcecode.Name.Machine`, `sourcecode.FullName.Machine` and
|
85 | 85 | `sourcecode.Enclosing.Machine` which are similar to `sourcecode.Name`,
|
@@ -520,7 +520,7 @@ foo("baz", 42)(true) // foo(bar=baz, baz=42)(p=true)
|
520 | 520 | Embedding Domain-Specific Languages
|
521 | 521 | -----------------------------------
|
522 | 522 |
|
523 |
| -The Scala programming is a popular choice to embed domain-specific languages: |
| 523 | +Scala is a popular language in which to embed domain-specific languages: |
524 | 524 | that means that you start with some external language, e.g. this
|
525 | 525 | [MathProg] example
|
526 | 526 |
|
|
0 commit comments