Skip to content

Commit ba44e8d

Browse files
authored
Update README.md
1 parent f265c97 commit ba44e8d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# Parser and pretty-printer for Rust [![Build Status][4]][5] [![Windows build status][7]][8]
22

33
`language-rust` aspires to efficiently and accurately parse and pretty-print the [Rust language][0].
4-
The underlying AST structures are also intended to be as similar as possible to the AST `rustc` uses
5-
itself. When `language-rust` and `rustc` have diverging AST, the divergence should be detailed in
6-
the documentation.
4+
The underlying AST structures are also intended to be as similar as possible to the `libsyntax` AST
5+
`rustc` uses itself. When `language-rust` and `rustc` have diverging AST, the divergence should be
6+
detailed in the documentation.
77

88
A typical use looks like:
99

1010
```haskell
1111
>>> :set -XTypeApplications +t
1212
>>> import Language.Rust.Syntax
13-
>>>
13+
1414
>>> -- Sample use of the parser
1515
>>> import Language.Rust.Parser
1616
>>> let inp = inputStreamFromString "fn main () { println!(\"Hello world!\"); }"
1717
inp :: InputStream
1818
>>> Right sourceFile = parse @(SourceFile Span) inp
1919
sourceFile :: SourceFile Span
20-
>>>
20+
2121
>>> -- Sample use of the pretty-printer
2222
>>> import Language.Rust.Pretty
2323
>>> pretty sourceFile
@@ -31,7 +31,7 @@ it :: Doc b
3131

3232
### Cabal
3333

34-
With Cabal and GHC, you should only need to run
34+
With Cabal and GHC, run
3535

3636
cabal install happy --constraint 'happy >= 1.19.8'
3737
cabal install alex
@@ -40,7 +40,7 @@ With Cabal and GHC, you should only need to run
4040

4141
### Stack
4242

43-
With the [Stack][1] tool installed, you should only need to run
43+
With the [Stack][1] tool installed, run
4444

4545
stack init
4646
stack build

0 commit comments

Comments
 (0)