-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76fb3e7
commit aa731e2
Showing
63 changed files
with
888 additions
and
1,524 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ | |
'sphinx_rtd_theme', | ||
'breathe', | ||
'myst_parser', | ||
'sphinx_tippy' | ||
] | ||
|
||
myst_heading_anchors = 4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/python3 | ||
|
||
import sys | ||
|
||
with open(sys.argv[1]) as infile: | ||
open_braces = 0 | ||
namespace_removed = 0 | ||
for line in infile: | ||
line = line.strip() | ||
if line.startswith("namespace emp {") or \ | ||
line.startswith("namespace web {") or \ | ||
line.startswith("namespace prefab {") or \ | ||
line.startswith("namespace emp::prefab {") or \ | ||
line.startswith("namespace evo {"): | ||
namespace_removed += 1 | ||
open_braces = 1 | ||
print() | ||
elif namespace_removed and line == "}": | ||
print() | ||
namespace_removed -= 1 | ||
else: | ||
if namespace_removed: | ||
open_braces += line.count("{") | ||
open_braces -= line.count("}") | ||
line = line.replace("emp::", "") | ||
line = line.replace("web::", "") | ||
line = line.replace("prefab::", "") | ||
print(line) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,14 @@ | ||
# Bits | ||
|
||
## BitMatrix | ||
Stuff about bits | ||
|
||
```{eval-rst} | ||
.. doxygenfile:: emp/bits/BitMatrix.hpp | ||
:project: Empirical | ||
``` | ||
|
||
## BitArray | ||
## API | ||
|
||
<!-- API TOC --> | ||
<!-- The above comment tells the API generator that this file has API docs. Don't remove it. --> | ||
```{eval-rst} | ||
.. doxygenfile:: emp/bits/BitArray.hpp | ||
:project: Empirical | ||
``` | ||
.. toctree:: | ||
:glob: | ||
## BitSet | ||
|
||
```{eval-rst} | ||
.. doxygenfile:: emp/bits/BitSet.hpp | ||
:project: Empirical | ||
api/* | ||
``` | ||
|
||
## BitSet Utilities | ||
|
||
```{eval-rst} | ||
.. doxygenfile:: emp/bits/bitset_utils.hpp | ||
:project: Empirical | ||
``` | ||
|
||
## BitVector | ||
|
||
```{eval-rst} | ||
.. doxygenfile:: emp/bits/BitVector.hpp | ||
:project: Empirical | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,12 @@ | ||
# Compiler | ||
|
||
## Deterministic Finite Automata | ||
## API | ||
|
||
<!-- API TOC --> | ||
<!-- The above comment tells the API generator that this file has API docs. Don't remove it. --> | ||
```{eval-rst} | ||
.. doxygenfile:: emp/compiler/DFA.hpp | ||
``` | ||
.. toctree:: | ||
:glob: | ||
## Lexer Utilities | ||
|
||
```{eval-rst} | ||
.. doxygenfile:: emp/compiler/lexer_utils.hpp | ||
``` | ||
|
||
## Lexer | ||
|
||
```{eval-rst} | ||
.. doxygenfile:: emp/compiler/Lexer.hpp | ||
``` | ||
|
||
## Non-Deterministic Finite Automata | ||
|
||
<!-- ```{eval-rst} | ||
.. doxygenfile:: emp/compiler/NFA.hpp | ||
:sections: briefdescription detaileddescription | ||
.. doxygentypedef:: NFA | ||
.. doxygentypedef:: NFA_state | ||
.. doxygenclass:: emp::tNFA | ||
:members: | ||
:undoc-members: | ||
.. doxygenclass:: emp::tNFA_state | ||
:members: | ||
:undoc-members: | ||
``` --> | ||
|
||
<!-- ## Regular Expressions | ||
```{eval-rst} | ||
.. doxygenfile:: emp/compiler/RegEx.hpp | ||
:project: Empirical | ||
:no-link: | ||
``` --> | ||
api/* | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.