Coder Social home page Coder Social logo

cpl's People

Contributors

m-yuhas avatar ruffsl avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

nancyx ruffsl

cpl's Issues

Update Build Script

The Build Script Should have the following features:

build install
build install
build uninstall
build uninstall

Create Atom Plug-In

It would be nice if there was an Atom plug-in to allow for pretty display of scripts in this language.

0.0 Feature List

The following must be implemented before 0.0 gets pushed to master:

输出
如果/否则/结束支
从...知道
当/结束圈
Variable Storage

Add Support For Functions

Add Support For Functions:

  1. Define Syntax Associated with Functions
  2. Research Efficient Ways of Implementing Functions in Interpreted Languages
  3. Implement

Use this ticket to track the status of the feature

Add Support For Arrays

Implement Arrays:

  1. Define syntax for storing, accessing, modifying, and performing arithmetic on arrays
  2. Make modifications to the VarObject Class to allow storage of Arrays
  3. Add array support in the Boolean Expression Parser and the Arithmetic Parser

Work on this feature will be tracked in this ticket

Allow Parsing of Command Line Arguments

Allow the script to parse command line arguments. These will be passed to the user in the form of an array and will be globally available throughout the script.

Finish work on this after Arrays are implemented.

Add Support For Strings

Currently the VarObject has the ability to store strings, but the rest of the code does not. To implement support complete the following subtasks:

  1. Define syntax for storing, accessing, modifying, and getting information on string variables
  2. Add support for strings in the arithmetic parser
  3. Add special string manipulation functions i.e. substring, index, prefix, suffix, etc.

Work on this feature will be tracked by this ticket

Implement sub() function in VarObject class

subtraction needs to be implemented. The following is desired behavior:

Subtracting 2 booleans gives an InvalidOperationType Exception
When subtracting a boolean from an integer or a double a "true" counts as a 1 and a "false" counts as a 0
When subtracting two strings, all instances of the string being subtracted are removed from the original string are removed. If there are no instances, that the original string is unmodified: e.x.:
"fox" - "o" = "fx"
"fox" - "dog" = "fox"
When subtracting a number or a boolean from a string, the number will be cast as a string and a boolean true will be 是 and a boolean false will be 否.

After a subtraction operation is performed on data of two different types, the resulting VarObject should always take the higher number type from the list below:

  1. Boolean
  2. Integer
  3. Double
  4. String

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.