Movatterモバイル変換


[0]ホーム

URL:


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

Algorithms from Sudkamps' Languages and Machines - implemented in Python 3

License

NotificationsYou must be signed in to change notification settings

thundergolfer/sudkamp-langs-machines-python

Repository files navigation

Sudkamp Languages And Machines - Python 3

All the algorithms from Sudkamp'sLanguages and Machines implemented inPython 3.

Note: If you preferJava, the same work is being done in that language over inthundergolfer/sudkamp-langs-machines-java.

Contributing

You are welcome to fork this repo in order to complete unimplemented algorithms or to improve on the existing ones. Please try to stick as close to the pseudo-code from the book.

Index of Algorithms

PageNumberName (in 3rd edition)Name (in repository)File
1084.2.1Construction of Set of Nullable VarsconstructSetOfNullableVars()contextFree.py
1144.3.1Construction of the Set CHAIN(A)chain(A)contextFree.py
1174.4.2Constr. of Set of Vars that Derive Terminal StringsgetVariablesThatDeriveTerminalStrings()contextFree.py
1194.4.4Contruction of Set of Reachable Vars.constructSetOfReachableVars()contextFree.py]
1264.6.1CYK AlgorithmCYK()cyk.py
1725.6.3Contruction of DM, a DFA Equiv. to NFA M
1795.7.2Determination of Equivalent States of DFAdetermineEquivelantStatesOfDFA()finiteAutomaton.py
1946.2.2Construction of a Regular Expression from a Finite Automaton
54317.4.3Recursive Simulation of NonDeterministic Turing Machine
55818.2.1Breadth-First Top-Down Parser
56418.4.1Breadth-First Bottom-Up Parser
58119.4.1Construction of FIRSTk Sets
58319.5.1Construction of FOLLOWk Sets
58819.7.1Deterministic Parser for a Strong LL(k) Grammar
59119.8.3Deterministic Parser for an LL(k) Grammar
60020.2.1Parser for an LR(0) Grammar
60420.3.3Parser Utilizing the Deterministic LR(0) Machine
61820.5.4Parser for an LR(1) Grammar

Index Of Related Algorithms Not Provided In The Textbook

NameName (In Repository)File
Calculate null closure of finite automatonnullClosure()finiteAutomaton.py

Credits

License

CC0

To the extent possible under law,Thundergolfer has waived all copyright and related or neighboring rights to this work.

About

Algorithms from Sudkamps' Languages and Machines - implemented in Python 3

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp