Skip to content

Commit 48aed3c

Browse files
Merge pull request geekcomputers#514 from rishu2403/master
Updated REDME
2 parents efe8174 + 0c7b24e commit 48aed3c

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

Assembler/README.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# Python-Assembler
22
#WE NEED A FREE T-SHIRT
33
This program is a simple assembler-like (intel-syntax) interpreter language. The program is written in python 2.
4-
To start the program you will type
4+
To start the program you will need to type
55

66
``` python assembler.py code.txt ```
77

88

99
After you hit 'enter' the program will interpret the source-code in 'code.txt'.
10-
You can use many texfiles as input. These will be interpret one by one.
10+
You can use many texfiles as input. These will be interpreted one by one.
1111

12-
You find some examples in the directory 'examples'.
12+
You can find some examples in the directory 'examples'.
1313

14-
For instance
14+
For instance-
1515

1616
```
1717
$msg db "hello world"

Assembler/assembler.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def scanner(string):
152152
elif ch == '_': # catch label for subprogram
153153

154154
state = 40
155-
# not catch the character _
155+
# not catches the character _
156156

157157
elif ch == 'r': # catch ret-command
158158

@@ -971,7 +971,7 @@ def parser():
971971
print("Error: Not found argument!")
972972
return
973973

974-
# converts the token into float, if token contains olny digits.
974+
# converts the token into float, if token contains only digits.
975975
# TODO response of float
976976
if token.t == "identifier": # for variables
977977

@@ -1033,7 +1033,7 @@ def parser():
10331033
return
10341034

10351035

1036-
# converts the token into float, if token contains olny digits.
1036+
# converts the token into float, if token contains only digits.
10371037
if token.t == "register":
10381038

10391039
# for the case that token is register
@@ -1094,7 +1094,7 @@ def parser():
10941094

10951095
else:
10961096

1097-
print("Error: No found register!")
1097+
print("Error: Not found register!")
10981098
return
10991099

11001100
elif token.token == "sub": # sub commando
@@ -1113,7 +1113,7 @@ def parser():
11131113
print("Error: Not found number!")
11141114
return
11151115

1116-
# converts the token into float, if token contains olny digits.
1116+
# converts the token into float, if token contains only digits.
11171117
if token.t == "register":
11181118

11191119
# for the case that token is register
@@ -1141,7 +1141,7 @@ def parser():
11411141
if tmpToken.token == "eax":
11421142
eax -= token.token
11431143

1144-
# update zero flag
1144+
# updated zero flag
11451145
if eax == 0:
11461146
zeroFlag = True
11471147
else:
@@ -1623,7 +1623,7 @@ def parser():
16231623

16241624
def registerLabels():
16251625
"""
1626-
This function search for labels / subprogram-labels and register this in the 'jumps' list.
1626+
This function search for labels / subprogram-labels and registers this in the 'jumps' list.
16271627
"""
16281628
for i in range(len(tokens)):
16291629
if (tokens[i].t == "label"):

linear-algebra-python/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ This module contains some useful classes and functions for dealing with linear a
77
## Overview
88

99
- class Vector
10-
- This class represents a vector of arbitray size and operations on it.
10+
- This class represents a vector of arbitrary size and operations on it.
1111

1212
**Overview about the methods:**
1313

1414
- constructor(components : list) : init the vector
15-
- set(components : list) : changes the vector components.
15+
- set(components : list) : changes the vector components
1616
- __str__() : toString method
17-
- component(i : int): gets the i-th component (start by 0)
17+
- component(i : int): gets the i-th component (start with 0)
1818
- size() : gets the size of the vector (number of components)
19-
- euclidLength() : returns the eulidean length of the vector.
19+
- euclidLength() : returns the euclidean length of the vector.
2020
- operator + : vector addition
2121
- operator - : vector subtraction
2222
- operator * : scalar multiplication and dot product
@@ -58,20 +58,20 @@ This module contains some useful classes and functions for dealing with linear a
5858

5959
The module is well documented. You can use the python in-built ```help(...)``` function.
6060
For instance: ```help(Vector)``` gives you all information about the Vector-class.
61-
Or ```help(unitBasisVector)``` gives you all information you needed about the
62-
global function ```unitBasisVector(...)```. If you need informations about a certain
61+
Or ```help(unitBasisVector)``` gives you all information you need about the
62+
global function ```unitBasisVector(...)```. If you need information about a certain
6363
method you type ```help(CLASSNAME.METHODNAME)```.
6464

6565
---
6666

6767
## Usage
6868

69-
You will find the module in the **src** directory its called ```lib.py```. You need to
70-
import this module in your project. Alternative you can also use the file ```lib.pyc``` in python-bytecode.
69+
You will find the module in the **src** directory called ```lib.py```. You need to
70+
import this module in your project. Alternatively you can also use the file ```lib.pyc``` in python-bytecode.
7171

7272
---
7373

7474
## Tests
7575

76-
In the **src** directory you also find the test-suite, its called ```tests.py```.
76+
In the **src** directory you can also find the test-suite, its called ```tests.py```.
7777
The test-suite uses the built-in python-test-framework **unittest**.

0 commit comments

Comments
 (0)