8a479c3c3ba8995004abd52d4604696a9fdfa195
42_EXT_05_computorv1
ressources
- project intra : https://projects.intra.42.fr/projects/42cursus-computorv1
- project luke : https://github.com/LuckyLaszlo/computorv1
install
this project uses submodules (maybe recursively), so either :
git clone --recurse-submodules <repo-url>- or, after cloning :
git submodule update --init --recursive
steps
- lexer
-> tokens types :
- TOKEN_VARIABLE // x, y, etc.
- TOKEN_NUMBER_INT // int
- TOKEN_NUMBER_DOUBLE // double
- TOKEN_POWER // ^ or **
- TOKEN_SIGN_PLUS // +
- TOKEN_SIGN_MINUS // -
- TOKEN_FACTOR_MULT // *
- TOKEN_FACTOR_DIV // / or :
- TOKEN_EQUAL // =
- END // null
- parser
-> terms :
- POSITION // left or righ from =
- SIGN // + or -
- COEFFICIENT // double
- EXPONENT // double
- reduce
-> polynom :
- 0
- 1
- 2
- 3
- ...
- print reduced form
- find degree
- print degree
- solve
- print solution
Description
Languages
C
59.2%
Shell
37.5%
Makefile
3.3%