Commit Graph

437 Commits

Author SHA1 Message Date
Danila Fedorin fbc12ec41c Format newly written code. 2017-08-26 12:19:34 -07:00
Danila Fedorin 385a64eace Make ReducerApplicable an independent interface. 2017-08-26 11:52:02 -07:00
Danila Fedorin c2feedee32 Register precedences of TreeValue operators. 2017-08-25 19:49:37 -07:00
Danila Fedorin b98b08b872 Make sure TreeValueOperator extends Operator. 2017-08-25 19:49:15 -07:00
Danila Fedorin f8eb051583 Fix token precedence for variable names / operators. 2017-08-25 19:48:56 -07:00
Danila Fedorin 20b2e77ee1 Add reduction of TreeValue operators. 2017-08-25 19:48:43 -07:00
Danila Fedorin bfc1ed5819 Fix incorrect template argument. 2017-08-25 18:47:49 -07:00
Danila Fedorin 9d52d55e68 Add TreeValue operator nodes, and parsing for them. 2017-08-25 18:42:41 -07:00
Danila Fedorin 07d7343339 Abstract some Binary and Unary node logic. 2017-08-25 17:46:25 -07:00
Danila Fedorin 73075c57b9 Add registering TreeValueOperators. 2017-08-25 17:31:47 -07:00
Danila Fedorin 5b1a48c02e Convert Applicable interfaces into Kotlin. 2017-08-25 16:07:23 -07:00
Danila Fedorin ca2681cc21 Add a TreeValueOperator. 2017-08-25 15:49:35 -07:00
Danila Fedorin 8a3c614602 Make applicable into an interface. 2017-08-25 15:49:26 -07:00
Danila Fedorin da1c78945e Move the code for applicables that require a Reducer. 2017-08-25 15:29:37 -07:00
Danila Fedorin 225a926f86 Move NumberFunction into Kotlin. 2017-08-25 14:59:41 -07:00
Danila Fedorin f83f2a7aaa Rename Function to NumberFunction. 2017-08-25 14:56:36 -07:00
Danila Fedorin d04adf4da5 Add Applicable to Operator, therby removing the need for Functions in it 2017-08-25 14:55:05 -07:00
Danila Fedorin 1f0addccea Add documentation loading for functions. 2017-08-25 01:51:14 -07:00
Danila Fedorin 1a47e07e97 Add Tree Value Functions to NumberReducer. 2017-08-25 01:41:51 -07:00
Danila Fedorin 26305c3bae Add the withReducer variants of the Applier functions. 2017-08-25 01:41:32 -07:00
Danila Fedorin 6b9252f902 Add parsing of TreeValueFunctions. 2017-08-25 01:21:28 -07:00
Danila Fedorin bc26ad0b88 Abstract the call functionality, and add TreeValueFunctionNode. 2017-08-25 01:17:52 -07:00
Danila Fedorin c5cd0f81ad Remove data modifier from tree classes. 2017-08-25 01:07:59 -07:00
Danila Fedorin ac19c7b230 Change lexer tokenizer to recognize tree value functions. 2017-08-25 01:03:12 -07:00
Danila Fedorin 40c80db914 Add tree value functions to plugins. 2017-08-25 00:59:39 -07:00
Danila Fedorin 00462281fe Add a function that operates on trees. 2017-08-25 00:49:16 -07:00
Danila Fedorin 01f80bbb53 Abstract some of the Function functionality further. 2017-08-25 00:43:36 -07:00
Danila Fedorin 553c7354c1 Account for the new string-only node structure.
The output has to be the same as the user-provided input, as the
tree isn't converted to numbers until evaluation.
2017-08-18 16:31:54 -07:00
Danila Fedorin 50ede6460c Remove Abacus dependency from ShuntingYardParser. 2017-08-18 15:57:48 -07:00
Danila Fedorin beb583a231 Move number string parsing from the parser into the reducer. 2017-08-18 14:26:33 -07:00
Danila Fedorin e0ff229df4 Temporarily substitute 0 for variables. 2017-08-18 14:21:48 -07:00
Danila Fedorin 1c751353f1 Lex and parse variables. 2017-08-18 14:21:14 -07:00
Danila Fedorin 0a15043b63 Implement a variable TreeNode. 2017-08-18 14:20:49 -07:00
Danila Fedorin 21e059c1ca Add a new TokenType for variables. 2017-08-18 14:20:37 -07:00
Danila Fedorin 16faceb3cc Add comment to DocumentationType. 2017-08-16 15:38:02 -07:00
Danila Fedorin 251da90d57 Fix problems with scaling on mobile phones. 2017-08-15 01:24:48 -07:00
Danila Fedorin a7536b198f Add a proper About page. 2017-08-15 01:02:16 -07:00
Danila Fedorin 66bda5db39 Add the download page. 2017-08-15 00:40:28 -07:00
Danila Fedorin 2425adaea5 Remove the rounded borders. 2017-08-15 00:40:21 -07:00
Danila Fedorin f5d913d527 Change download to link to the Download page. 2017-08-15 00:40:05 -07:00
Danila Fedorin beae822d76 Move button styling into scss. 2017-08-15 00:31:47 -07:00
Danila Fedorin bcd3e3b68a Add a home layout. 2017-08-15 00:14:20 -07:00
Danila Fedorin 8b42acfbb1 Change the code font. 2017-08-14 23:42:17 -07:00
Danila Fedorin 952eeac704 Add some style to code. 2017-08-14 22:58:32 -07:00
Danila Fedorin b57f24854e Add the page layout for pages like About. 2017-08-14 22:58:27 -07:00
Danila Fedorin 6758771c45 Add support for navbar links. 2017-08-14 22:46:39 -07:00
Danila Fedorin 415a05288a Use the center class for centering the content. 2017-08-14 22:36:46 -07:00
Danila Fedorin 334439e075 Add a header. 2017-08-14 22:36:36 -07:00
Danila Fedorin 852776566d Add some basic CSS styling. 2017-08-14 22:36:26 -07:00
Danila Fedorin 07020de1f9 Add the CSS file and link to it from head. 2017-08-14 21:40:37 -07:00