Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 05cd0ce

Browse files
committed
Pytomatas v.1.1.0
Simulates Automatons Acceptors DFA, NFA, PDA and Turing Machines
1 parent 19aa963 commit 05cd0ce

File tree

17 files changed

+26
-25
lines changed

17 files changed

+26
-25
lines changed

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 🤖 Pytomatas
22

3-
**📌 Version 1.0.0**
3+
**📌 Version 1.1.0**
44

55
<hr>
66

@@ -62,7 +62,7 @@ Example of a DFA implementation...
6262
**1. Creating empty automata and then give the data:**
6363

6464
```python
65-
from pytomatas import DFA
65+
from Pytomatas.dfa import DFA
6666

6767
# Creates a DFA called "my_dfa":
6868
my_dfa = DFA()
@@ -111,7 +111,7 @@ my_dfa.accepts(word, stepByStep=True)
111111
**2. Creating the automata passing the data:**
112112

113113
```python
114-
from pytomatas import DFA
114+
from Pytomatas.dfa import DFA
115115

116116
# Declare the States:
117117
Q = {"q0", "qa", "q1", "qb", "q2", "qf", "qx"}

‎docs/dfa.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Example: `{"q1, "q2", "qf"}`
147147
📌 **First example:**
148148

149149
```python
150-
from pytomatas.dfa import DFA
150+
from Pytomatas.dfa import DFA
151151

152152
# First example of DFA Automata instance:
153153
# Language of the Automata:
@@ -180,7 +180,7 @@ while True:
180180
**📌 Second example:**
181181

182182
```python
183-
from pytomatas.dfa import DFA
183+
from Pytomatas.dfa import DFA
184184

185185
# Second example of DFA Automata instance:
186186
# Language of the Automata:

‎docs/nfa.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Example: `{"q1, "q2", "qf"}`
149149
📌 **First example:**
150150

151151
```python
152-
from pytomatas.nfa import NFA
152+
from Pytomatas.nfa import NFA
153153

154154
# Second example of NFA Automata instance:
155155
# Language of the Automata:
@@ -182,7 +182,7 @@ while True:
182182
**📌 Second example:**
183183

184184
```python
185-
from pytomatas.nfa import NFA
185+
from Pytomatas.nfa import NFA
186186

187187
# Second example of NFA Automata instance:
188188
# Language of the Automata:

‎docs/pda.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ If you put: `["1", "2", "Z"]`: `"1"` is on the top, and `"Z"` in the bottom.
179179
📌 **First example:**
180180

181181
```python
182-
from pytomatas.pda import PDA
182+
from Pytomatas.pda import PDA
183183

184184
# First example of PDA Automata instance:
185185
# Language of the Automata:
@@ -216,7 +216,7 @@ while True:
216216
**📌 Second example:**
217217

218218
```python
219-
from pytomatas.pda import PDA
219+
from Pytomatas.pda import PDA
220220

221221
# Second example of PDA Automata instance:
222222
# Language of the Automata:

‎docs/tm.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Example: `{"q1, "q2", "qf"}`
153153
📌 **First example:**
154154

155155
```python
156-
from pytomatas.tm import TM
156+
from Pytomatas.tm import TM
157157

158158
# First example of TM Automata instance:
159159
# Language of the Automata:
@@ -220,7 +220,7 @@ while True:
220220
**📌 Second example:**
221221

222222
```python
223-
from pytomatas.tm import TM
223+
from Pytomatas.tm import TM
224224

225225
# Second example of TM Automata instance:
226226
# Language of the Automata:

‎docs/xsafebox.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This is a sample project that uses automata from the Pytomatas library (this lib
1515
#### 🎨 1. Automata Safebox Generator:
1616

1717
```python
18-
from pytomatas.dfa import DFA
18+
from Pytomatas.dfa import DFA
1919
# import os
2020

2121
'''
@@ -258,7 +258,7 @@ if __name__ == "__main__":
258258
#### 🔍 2. Automata Safebox Password Validator:
259259

260260
```python
261-
from pytomatas.pda import PDA
261+
from Pytomatas.pda import PDA
262262
# import os
263263

264264
def validatePassword(password: str):

‎examples/dfa-example-1.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from pytomatas.dfa import DFA
1+
from Pytomatas.dfa import DFA
22

33
# First example of DFA Automata instance:
44
# Language of the Automata:

‎examples/dfa-example-2.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from pytomatas.dfa import DFA
1+
from Pytomatas.dfa import DFA
22

33
# Second example of DFA Automata instance:
44
# Language of the Automata:

‎examples/nfa-example-1.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from pytomatas.nfa import NFA
1+
from Pytomatas.nfa import NFA
22

33
# Second example of NFA Automata instance:
44
# Language of the Automata:

‎examples/nfa-example-2.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from pytomatas.nfa import NFA
1+
from Pytomatas.nfa import NFA
22

33
# Second example of NFA Automata instance:
44
# Language of the Automata:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /