All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Variables! One can now doing things like
R1 = 100
,R1 + 100
,R1 R2
and so forth. The name of a variable must be an uppercase letter followed by 1 (or more) digit. Assignment can be chained, that is you can writeR1 = R2 = 100
. - A new section «What to do?» in the readme, as a TODO list.
- Reworded the help screen
- Internal result of an evaluation is now a type
- Removed the folder
documentation
and its content as it was useless.
- All units and prefix used in electronic (sort of)
- One can use * for a multiplication as well as no symbol
- √ as an alias of sqrt
- The version now has a codename. The current one is «Units»
- A bug where some illegal tokens produced an infinite loop
- Exponent operator: ^
- New functions: sin, cos and tan
- Using the [readline library][readline]
- There's now a branch «development» on Github [readline]: https://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
- In order to use the readline library the license of Electr switch from MIT to [Apache 2.0][apache2] [apache2]: http://www.apache.org/licenses/LICENSE-2.0
- Temporarily limits function's arity to one. This fixes some minor bugs in the AST.
- Quit gracefuly with Ctrl-C
- 10,000 and 10_000 are the same as 10000
- Electr supports negative numbers
- Coco, a code coverage tool as a developer dependency
- Enable Travis Continuous Integration tool
- One can write floating point number without a leading zero (ie
.678
).
- Basic Read-Eval-Print-Loop as a proof of concept. It recognizes some units but not all
- Options -v (version), -h (help), --ast (display the AST instead of the result) and -e (compute this expression and quit, do not run interactively)
- Grammar of Electr (in
grammar.md
) - Beginning of documentation for developers
- Precedence table
- This change log