Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

Variable Declaration #2

Closed
sunjay opened this issue Jan 18, 2017 · 0 comments
Closed

Variable Declaration #2

sunjay opened this issue Jan 18, 2017 · 0 comments

Comments

@sunjay
Copy link
Owner

sunjay commented Jan 18, 2017

Support the following syntax:

// automatically determine the length of the right
a[] = "Hello, world\n";
// Outputs "Hello, world\n"
out a;
// error if rhs is not the length declared on the left
b[3] = "abc";
out a;
out b;
out "\n";

// invalid because different sizes (addressed in #3)
//a = b;

// copies a to c. c is the same size as a.
c = a;

out "b = ";
out b;
out "\n";
b = "dbd";
out "b = ";
out b;
out "\n";

// Should accept any [a-zA-z0-9_] as identifier names
// Cannot start with a number
@sunjay sunjay self-assigned this Jan 18, 2017
@sunjay sunjay changed the title Variable assignment Variable Declaration Jan 19, 2017
@sunjay sunjay modified the milestone: MVP - 1.0.0 Jan 22, 2017
@sunjay sunjay closed this as completed Jan 28, 2017
@sunjay sunjay moved this from In Development to Done in MVP - 1.0.0 Jan 28, 2017
@sunjay sunjay mentioned this issue Jan 28, 2017
8 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

No branches or pull requests

1 participant