Code Monkey home page Code Monkey logo

myriad's Introduction

Hehe ...

myriad's People

Contributors

coderosh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

myriad's Issues

Problem With Print Function

  • Escape sequences not working

    print("Hello\nWorld")

    Should print

    Hello
    World
    

    But prints

    Hello\nWorld
    
  • String printing is wrong

    print("Hello World")

    Should print as

    Hello World
    

    But prints with quotation and green colors

    'Hello World'

    Only should print with color and quotation inside that arrays or objects.

    ["Hello"]
    
    { hi: "Hello" } 

Object is parsed as a block statement.

{ name: "Roshan Acharya" };

should be parsed as object instead of block statement.

Currently, object can be used in a place which explicitly expects an expression (variable declaration, assignment).

But where the statement or expression both can be used the above object is parsed as a block statement and an error is thrown.

Use case:

func getData() {
    { name: "Roshan Acharya", age: 100 };
}

getData function should return the object by default but instead, an error is thrown as the object is treated as a block statement. (using a return keyword works as expected ).

func getData() {
    return { name: "Roshan Acharya", age: 100 };
}

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.