Stefan Zermatten
b78517b61f
Finished migrating parser to be object orientation free. All tests pass
2021-10-03 13:54:17 +02:00
Stefan Zermatten
feffa45cf7
Began work on rewriting parser without object orientation
...
Parsing is expensive, if the parse tree can be stored on the DB it can
save a lot of compute time, but mongo can't store Classes, so we
re-write without classes
2021-10-01 13:41:22 +02:00
Stefan Zermatten
e63dd2560a
tested and fixed constant node computations
2021-09-23 12:03:25 +02:00
Stefan Zermatten
5c84836238
More engine rewrite progress, starting to get messy again
2021-09-13 16:12:04 +02:00
Stefan Zermatten
e21586e9ce
Added reasonable storage limits to most string and array schemas
2021-08-10 18:12:55 +02:00
Stefan Zermatten
1f633621b7
Fixed a bug with functions accepting rolled arguments
2021-04-22 15:59:12 +02:00
Stefan Zermatten
3c26bb2fc6
Reworked log data format, overhauled snackbar
2021-03-28 12:31:39 +02:00
Stefan Zermatten
574f8373e7
Fixed crash when indexing a non-array node, added more array node errors
2021-03-01 14:47:46 +02:00
Stefan Zermatten
e11ab39864
Added tableLookup function
2021-02-24 11:57:40 +02:00
Stefan Zermatten
2b345c1f77
Improved error handling for most calculations
2021-02-12 11:00:44 +02:00
Stefan Zermatten
439eadf079
Condensed logs to a single card per action
2021-02-11 15:48:23 +02:00
Stefan Zermatten
3313ed0297
Added constants to the UI and Computation Engine
2021-02-11 13:03:31 +02:00
Stefan Zermatten
9ff096ec0f
Added modulo operator
2021-02-03 09:33:00 +02:00
Stefan Zermatten
f9f0186d95
Fixed error where parser was not creating accessor nodes correctly
2021-02-03 00:39:11 +02:00
Stefan Zermatten
60ea545ee9
Started implementing constant property
2021-02-02 16:36:23 +02:00
Stefan Zermatten
aaa5d0b63b
Allowed effects and calculations to target nearest ancestors of #type
2021-02-02 16:11:59 +02:00
Stefan Zermatten
69c72e0987
Fixed parenthesis being discarded from compiled calculations in cases where they should not be
2021-02-02 15:13:49 +02:00
Stefan Zermatten
fa24430a7f
Fixed parsing of variable names with numbers and stacked dice rolls like dd8-> 1d(1d8)
2020-11-13 10:04:37 +02:00
Stefan Zermatten
fde2f821e7
Fixed parser not handling whitespace
2020-11-12 21:44:08 +02:00
Stefan Zermatten
2a1aa02e97
Added true and false keywords, fixed grammar ambiguity in if statements
2020-11-12 15:11:24 +02:00
Stefan Zermatten
aeb347084f
Fixed ambiguitiy in grammar caused by previous fixes
2020-11-12 13:47:10 +02:00
Stefan Zermatten
005bc162cb
Fixed != not being matched because ! was matched first. Fixed presedence for & | and relational operators
2020-11-12 13:45:14 +02:00
Stefan Zermatten
9941d91bb8
Fixed != operator, separated == and ===, != and !== for strictness control
2020-11-12 13:44:01 +02:00
Stefan Zermatten
3024168e95
Replaced old parser with new parser
2020-11-10 14:07:22 +02:00
Stefan Zermatten
1f0678b50b
Added not operator to the parser
2020-11-05 15:32:01 +02:00
Stefan Zermatten
4dad2c41e5
Updated parser to accept underscores in variable names
2020-11-05 14:50:44 +02:00
Stefan Zermatten
30cca39e7c
Merge branch 'version-2' of https://github.com/ThaumRystra/DiceCloud1 into version-2
2020-09-28 13:58:03 +02:00
Stefan Zermatten
f27550362a
Fixed various parser bugs, implemented unary operators
2020-09-18 22:13:12 +02:00
Stefan Zermatten
bc5c465a32
Started work on checks
2020-09-18 14:00:29 +02:00
Stefan Zermatten
c8ddf9d547
Added the ability to double all number of dice to roll using context
2020-09-18 12:24:08 +02:00
Stefan Zermatten
6570665c1e
Added functions and ensured the context was being passed around correctly
2020-09-18 11:52:44 +02:00
Stefan Zermatten
06f17a6d33
Parser now uses context to store details of the computation
2020-09-18 10:14:53 +02:00
Stefan Zermatten
b69ad6c306
Removed unused parser code
2020-09-10 11:39:27 +02:00
Stefan Zermatten
5dec760452
Parser now works with variables passed into scope
2020-09-10 11:38:28 +02:00
Stefan Zermatten
ede4e1367d
Continued work on parser, now calling functions and rolling correctly
2020-09-10 00:14:24 +02:00
Stefan Zermatten
81645df2a6
Lots of work on the parser including testing interface
2020-09-09 17:09:50 +02:00
Thaum Rystra
b7b0ac9c00
Separated parser class nodes and began writing compile methods
2019-04-06 10:56:53 +02:00
Stefan Zermatten
d21827106c
Moved parse tree classes out of grammar.js started working on compilation. Broke the build
2019-03-29 14:08:09 +02:00
Stefan Zermatten
caf7f3efb9
Moved parser into main source folders
2019-03-27 12:23:27 +02:00