Calculator.rs Versions Save

A simple command-line calculator program writen with Rust.

1.11.3a

1 week ago

1.11.0c

5 months ago

现在代码块内的每一行代码末尾无需添加分号了 Now there is no need to append semicolon at the end of code lines in code blocks

1.11.0b

7 months ago

1.11.0a

7 months ago

1.10.5

8 months ago
  • MathError will be thrown when encount math calculating error. E.g. division by zero.
  • Use modulo operator % replaced the build-in function Math.mod, which can do better in the fraction calculating.

1.10.4

9 months ago
  • LineEditor module refactored
  • Internal global variables refactored
  • Tutorials for Basic standard module updated

1.10.3

9 months ago
  • Unique is a "unique" data type, it can be constructed from Raw-String value. However, every Unique value is unique. You can create two Unique value from a same String, but the two Unique are actually different, just like Symbol in JavaScript. Unique can be constructed from standard function unique
  • Changed type constants (NUMBER, STRING etc.) from Number typed to Unique typed, and the standard function type now returns Unique typed value.
  • More type annotations added, see Tutorials - syntax - function for more detail.

1.10.2

9 months ago
  • New data type: Raw-Map and Map-Object
  • New standard functions: Array::slice, Array::contains

1.10.1

9 months ago
  • Fraction & fraction calculating supported
  • Keyword glo & global variable assignment in function scope
  • : symbol in script multi-line code is removed
  • Computing symbol &(And) and |(Or) added
  • ==(compare equal symbol) and !=(not compare equal symbol) now can be applied on any value, for Number | String | Boolean typed value, their actual value will be compared, and for Array | Function | LazyExpression | Class | Object typed value, their memory address will be compared
  • Tutorials are divided Chinese and English two version
  • Lazy-Expression typed value can be computed directly now. See also: Tutorials - syntax - lazy_expression.

1.10.0b

9 months ago
  • Computing symbol &(And) and |(Or) added
  • ==(compare equal symbol) and !=(not compare equal symbol) now can be applied on any value, for Number | String | Boolean typed value, their actual value will be compared, and for Array | Function | LazyExpression | Class | Object typed value, their memory address will be compared
  • Tutorials are divided Chinese and English two version