mani-language / Mani

Máni ... an awesome, super simple programming language!
https://mani-language.github.io/
Mozilla Public License 2.0
28 stars 7 forks source link

AS operator #52

Closed crazywolf132 closed 5 years ago

crazywolf132 commented 5 years ago

Is your PR related to a feature request or Bug report? If applicable, please list feature request number or bug report ID.

No

Describe your PR A clear and concise description of what your pull request is changing or adding.

Adds the new AS operator, along with tests for it.

Describe intended use A clear and concise description of the intended use of the feature. Along with example code.

The AS operator can be used to convert an object from one type to another.

> let str = "Im a string";
> say str as "list";
[Im, a, string]

How did you fix the bug? If applicable, how did you fix the bug? Please use code snippets too.

N/A

Is it in the form of a library

If applicable what is the library called?

N/A

Does your PR replace an existing system If applicable, please describe how this PR changes the use of a related item.

No

Additional comments Add any additional comments or screenshots here.