Skip to content
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

Proposal of structure #1

Open
pythonbrad opened this issue Oct 2, 2022 · 2 comments
Open

Proposal of structure #1

pythonbrad opened this issue Oct 2, 2022 · 2 comments

Comments

@pythonbrad
Copy link
Member

pythonbrad commented Oct 2, 2022

Structure proposal

The main function

fn main() {
	// Get the command string
	// Parse it
	// Execute it
}

The parser

fn parser(s: &str) -> ... {
	// Analyze the string command in doing a lexical analysis
	// and generate a bytecode
	// return the bytecode
}

The virtual machine

fn execute(...) -> ... {
	// Execute the bytecode
	// return the execution status code
}
@RMPR
Copy link
Collaborator

RMPR commented Oct 3, 2022

Hey, thanks for the issue, I like the new structure, especially for the virtual machine (I wonder if we won't need another module completely for that, I guess we'll see in the future). Just waiting for your PR.

@pythonbrad
Copy link
Member Author

pythonbrad commented Nov 5, 2022

Hello @RMPR , please can you check this pull request ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants