@@ -10,7 +10,7 @@ What it Does
1010|j2py | reads the Java source files you give it and produces
1111somewhat-roughly-equivalent Python source code. It tries to make the
1212same decisions you would if you were porting the code manually. It
13- can perform the translation faster and more accuratly than you could,
13+ can perform the translation faster and more accurately than you could,
1414because it's a dumb machine that does what its told and you're a smart
1515person with lots of books you haven't read and a love of chocolate so
1616sometimes you're easily distracted and make mistakes. Like me and
@@ -41,8 +41,8 @@ How it Works
4141
4242|j2py | first converts the source code you give it into an abstract
4343syntax tree. (That's a lie, really. |j2py | doesn't do this step,
44- Antlr does this step, and Antlr is a whole lot bigger and cooler than
45- |j2py | could ever be. Obviously, really smart people worked on Antlr
44+ ANTLR does this step, and ANTLR is a whole lot bigger and cooler than
45+ |j2py | could ever be. Obviously, really smart people worked on ANTLR
4646and only one fairly dim one worked on |j2py |).
4747
4848After the syntax tree is constructed, it's walked and its nodes are
@@ -63,16 +63,16 @@ of Java source code that you can't make into nice and neat and obvious
6363Python equivalents.
6464
6565To get around these trouble spots, |j2py | takes one of two approaches
66- (and sometimes both if she's feeling especially fiesty or if you
66+ (and sometimes both if she's feeling especially feisty or if you
6767haven't paid her much attention lately). The first approach is to try
6868and make the problem go away. For example, in Java the `if ` statement
69- can contain an assigment expression::
69+ can contain an assignment expression::
7070
7171 if (++x == 0) { ... }
7272
73- There isn't a single statement equivalent in Python because assigments
73+ There isn't a single statement equivalent in Python because assignments
7474are statements there, not expressions. So |j2py | does what it can,
75- presuably what you would do::
75+ presumably what you would do::
7676
7777 x += 1
7878 if x == 0:
@@ -82,7 +82,7 @@ Careful readers will have spotted just how close we came to driving
8282over a cliff with that `++x ` expression. If the increment had been
8383done on the other side of the variable, the meaning of the statement
8484would have changed and the Python code would have been wrong.
85- Fortuatly , I've driven by lots of cliffs and have been scared by all
85+ Fortunately , I've driven by lots of cliffs and have been scared by all
8686of them so I thought of this ahead of time and decided to do something
8787about it::
8888
@@ -96,7 +96,7 @@ will get translated to::
9696 ...
9797
9898See what |j2py | did there? It tried to do what you would do. For
99- further explaination and enumeration see the :ref: `features ` chapter.
99+ further explanation and enumeration see the :ref: `features ` chapter.
100100
101101
102102Why Bother?
0 commit comments