Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CompilerConstruction
CodeSamples
Commits
c4342872
Commit
c4342872
authored
May 01, 2020
by
Ronald Charles Moore
Browse files
added new directory interpret++
parent
768fd8d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
recursiveDescentParsers/cplusplus/README.md
View file @
c4342872
...
...
@@ -15,13 +15,24 @@ There are (or will be some day) subdirectories here:
This code take mathematical expressions and evaluates them,
i.e. it outputs numbers.
2.
`halfBakedCompiler`
1.
`interpreter++`
This code does exactly what interpreter does
(except for
`make test`
, which does more).
The major difference is more extensive use of C++ features,
including the new (C++17)
`std::variant<>`
template.
Testing is also more extensive.
This is meant mostly as a preparation for larger projects where
software engineering aspects becomes more important
whereas the version in
`interpreter`
(see above) is meant
to get down to recursive descent parsing as quickly as possible.
1.
`halfBakedCompiler`
This code takes mathematical expressions and convets them into
an AST (Abstract Syntax Tree), then dumps that tree to output
(i.e. displays the tree as text). It does nothing really useful,
in other words.
3
.
`LLVMcompiler`
1
.
`LLVMcompiler`
This is vaporware -- in other words, it does not exist yet, and
may never do so. But I hope someday to create a version that
builds the AST, then converts it to LLVM IR, and then evaluates
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment