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

Support complex initializers #46

Open
ShivamSarodia opened this issue Mar 31, 2018 · 1 comment
Open

Support complex initializers #46

ShivamSarodia opened this issue Mar 31, 2018 · 1 comment

Comments

@ShivamSarodia
Copy link
Owner

ShivamSarodia commented Mar 31, 2018

Today, only initializers of integral and pointer types declared locally is supported by ShivyC. In particular, the following are unsupported:

  • Initialization of an array, like int a[2] = {1, 2};
  • Initialization of a string, like char s[3] = "hi";

This will require some frontend changes in the parser and some backend changes to load the initialization values into the variables.

@ShivamSarodia ShivamSarodia changed the title Support better initializers Support complex initializers Apr 7, 2018
@ShivamSarodia
Copy link
Owner Author

May pair well with #68

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

No branches or pull requests

1 participant