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

Array literals implementation #173

Merged
merged 5 commits into from Jul 24, 2017
Merged

Array literals implementation #173

merged 5 commits into from Jul 24, 2017

Commits on Jul 22, 2017

  1. Implement array literals conforming to current Newspeak implementations

    - these are not tuple literals as defined in the spec v0.1 sec. 5.1.7,
      instead they are mutable arrays
    
    - the parser uses symbol names from Newspeak spec, which is inconsistent
      with the other symbol names, but we slowly should migrate to the names
      from the spec
    Richard Roberts authored and smarr committed Jul 22, 2017
    Configuration menu
    Copy the full SHA
    dd65066 View commit details
    Browse the repository at this point in the history
  2. Added tests for array literals

    - simple tests and complex expressions
    - homogeneous and mixed types
    - test specializations, and storage transitions
    - added test file in runner and SomTests
    Richard Roberts authored and smarr committed Jul 22, 2017
    Configuration menu
    Copy the full SHA
    31f9b76 View commit details
    Browse the repository at this point in the history
  3. Move implementation into ArraySetAllStrategy

    - also make sure that specialization happens only once, if possible
    
    Signed-off-by: Stefan Marr <git@stefan-marr.de>
    smarr committed Jul 22, 2017
    Configuration menu
    Copy the full SHA
    5219ebf View commit details
    Browse the repository at this point in the history
  4. Switch to array literal notation where it seems benefitial

    Signed-off-by: Stefan Marr <git@stefan-marr.de>
    smarr committed Jul 22, 2017
    Configuration menu
    Copy the full SHA
    18576e4 View commit details
    Browse the repository at this point in the history
  5. Mark ArrayLiteralNode with NewArray tag

    - also update dym test data
    
    Signed-off-by: Stefan Marr <git@stefan-marr.de>
    smarr committed Jul 22, 2017
    Configuration menu
    Copy the full SHA
    0ab4555 View commit details
    Browse the repository at this point in the history