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

Add basic parsing code #43

Merged
merged 2 commits into from
Jun 27, 2024
Merged

Add basic parsing code #43

merged 2 commits into from
Jun 27, 2024

Conversation

JakeRoggenbuck
Copy link
Member

closed #42

} else {
PRINT_ERROR("Not correct main function.\n");
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fclose(fp);?


// Add custom return code
char *code_end =
end_main_custom_return(atoi(tokens[6].contents));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if I write the following code:

int main() {
    return "seven";
}

Copy link
Contributor

@adamhutchings adamhutchings left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good for now as a start. Of course we shall expand it later.

@JakeRoggenbuck JakeRoggenbuck merged commit 46f28b7 into jabacat:main Jun 27, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

Create initial basic parse
2 participants