-
-
Notifications
You must be signed in to change notification settings - Fork 570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] core:odin/frontend
#2960
Draft
DragosPopse
wants to merge
18
commits into
odin-lang:master
Choose a base branch
from
DragosPopse:core-frontend
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
[WIP] core:odin/frontend
#2960
Conversation
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
…s to gen for now)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the beginning of the WIP
core:odin/frontend
package. I will be starting working on it tomorrow, but I want to have a high level plan here written for everyone to see, and have the progress visible for everyone to review.Plans:
core:odin/ast
core:odin/parser
core:odin/tokenizer
under the newcore:odin/frontend
checker
core:odin/ast
types to include information about type checking, acording to the C++ compilercheck*.cpp
files into odin codeConversion rules (To be added as discovered):
union
+enum
tag from C++ will be replaced by odin's taggedunion
StringMap
replaced bymap[string]T
PtrSet
replaced bymap[^T]bool
PtrMap
TBDstd::atomic
variable will be prefixed byatomic_
, as there is not a dedicated type in odinBlockingMutex
will besync.Mutex
RwMutex
will besync.RW_Mutex
RecursiveMutex
will besync.Recursive_Mutex
Ast
will be renamed toNode
Ada_Case
types,snake_case
procs.Missing features in
core
(to be added as found):mpsc_queue
mpmc_queue
: this seems to be required for some of the multithreading optimization. These can potentially be added as part of this pull request, incore:container/queue/mpsc
orcore:container/mpsc_queue