Comments (1)
It should support:
- Array initialization, ex:
INT[10] foo = {1, 2, 3, 4, 5}
(we can insert up to 10, but throws exception when we insert more). - Array reference, ex:
INT foobar = foo[2]
(refers to value3
). - Array assignment, ex:
foo[1] = 100
(now array looks like{1, 100, 3, 4, ...}
- Functions should take arrays as arguments, like
FUNCTION foobar_fn(INT[] hey, BOOL hello) { ... }
- For getting the size of array, capacity, etc. we will have builtin functions, something like python,
len(some_array)
and it returns the total size, or we can doarray_var.SIZE()
to get size. We will discuss on the design choice once we get the basics done.
from prism-interpreter.
Related Issues (20)
- Scope HOT 1
- Add support for builtin functions HOT 3
- Support operations over class methods and attributes HOT 2
- Support STRING type HOT 1
- Raise an exception when a user tries to define an in-built function HOT 1
- HTML output HOT 1
- Continue and break statements for WHILE and FOR loops
- Access specifiers for classes
- Import statement
- Support ELIF statement
- Postfix addition and subtraction
- [Optional] Support ternary operator
- Code coverage: mark partial coverage conditional with different color
- Code coverage: treat both IF-ELSE pair as a single conditional block (Jackie's remark)
- Implement data coverage
- Add support for constructors
- Create an EXIT function to exit a Prism program with an exit code
- Add hashmap data structure support
- Add support for != expression
- Code Coverage - Statement Coverage HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prism-interpreter.