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 constant arrays, streams and unions #1

Open
parsifal-47 opened this issue May 20, 2014 · 3 comments
Open

Add constant arrays, streams and unions #1

parsifal-47 opened this issue May 20, 2014 · 3 comments

Comments

@parsifal-47
Copy link
Owner

No description provided.

@parsifal-47 parsifal-47 self-assigned this May 21, 2014
@parsifal-47
Copy link
Owner Author

current version (as described in BNF) seems to be not really useful so I decided to use Sisal 2.0 arrays as the base. Related article is "A formal semantics for Sisal arrays" by Isabelle Attali et al

according to BNF array constant should look like: array optional_array_id [optional_array_type] {_optional_first_index; _optional_array_list}

in Sisial 3.0 description document ";" is replaced by "!" and multidimensional array is always array of arrays
unlike Sisal 2.0 where you can create multidimensional arrays,
so it is more usable to keep Sisal 2.0 notation: array type [_size_descriptor: _array_part_list] as described in referred article

@parsifal-47
Copy link
Owner Author

_array_part_list represent array parts separated by ";" if there is only one part -- it should be something like 1,2,3. If not, something like 8.. : [1,2,3] or [1,2,3] : 8 (for three-dimensional array). Or it can be "otherwise". Of course there are lot situations when the definition syntax will be correct but ambiguous or meaningless. for further examples check out the article

@parsifal-47
Copy link
Owner Author

currently only array[integer] [1:1,2,3] one-dimension arrays are implemented, more to be done

@parsifal-47 parsifal-47 removed their assignment Aug 4, 2014
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

1 participant