ArthurSonzogni
01ac8690d5
Fix CVE-2023-27390
...
"Self" message are not supported, but this was not checked. This
triggered the error "Something is wrong", and then caused a buffer
overflow.
Bug:https://github.com/ArthurSonzogni/Diagon/issues/65
2023-05-08 17:18:24 +02:00
Arthur Sonzogni
413132bc56
Math generator: add limit ( #60 )
...
Bug:https://github.com/ArthurSonzogni/Diagon/issues/56
2023-01-24 10:49:11 +01:00
Arthur Sonzogni
cd7d96eeb3
Add syntax highlight ( #54 )
2022-12-19 19:48:38 +01:00
Arthur Sonzogni
0a6f1b9bc0
Flowchart improved ( #53 )
...
* Link against boost statically.
* Improve FlowChart if/then/else
* Add support for while loop in FlowChart
* Add support for do-loop
2022-12-12 18:30:31 +01:00
ArthurSonzogni
94cd2f901c
Add fuzzer
2022-11-20 11:32:02 +01:00
tg-m
3a1dfe84ab
Add support for new lines in Sequence ( #40 )
...
* Add support for new lines in Sequence
When using `diagon Sequence` it is not possible (at least I couldn't
find a way) to add new lines to the messages in the Sequence submodule.
This patch adds parameter `--new_lines_at_bsn` that results in
substituting literal `\n` with new lines.
Example:
```bash
$ echo "Alice -> Bob: send(\n msg="Hello...",\n length=8,\n)" | \
diagon Sequence --new_lines_at_bsn=true
```
output:
```
┌─────┐ ┌───┐
│Alice│ │Bob│
└──┬──┘ └─┬─┘
│ │
│send( │
│ msg=Hello...,│
│ length=8, │
│) │
│──────────────>│
┌──┴──┐ ┌─┴─┐
│Alice│ │Bob│
└─────┘ └───┘
```
* Add tests & refactor.
Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com >
2022-06-07 22:06:59 +02:00
Arthur Sonzogni
30e6b87874
Add mathbb ( #34 )
...
This resolves:
https://github.com/ArthurSonzogni/Diagon/issues/33
2022-03-20 15:40:14 +01:00
Arthur Sonzogni
fe9fd23ac2
Improve the flowchart translator and add history API. ( #15 )
2021-03-18 21:37:18 +01:00
Xin Wu
bbf3788823
Add infty ∞ ( #14 )
...
* Add infty ∞
* Add infinity and add tests.
Co-authored-by: Xin Wu <xin.wu@uni-paderborn.de >
Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com >
2021-03-18 21:32:08 +01:00
ArthurSonzogni
7e755898a3
Improve the flowchart translator and add history API.
2021-03-16 21:50:49 +01:00
ArthurSonzogni
95f070f953
TMP
2020-12-22 16:33:15 +01:00
ArthurSonzogni
ffbf4a7093
Add graph DAG.
2020-12-13 22:05:10 +01:00
ArthurSonzogni
4b0b881265
Add the DAG translator.
2020-12-05 18:05:37 +01:00
ArthurSonzogni
0dcd30b3fe
Add \ldots for latex
...
This fixes:
https://github.com/ArthurSonzogni/Diagon/issues/6
2020-06-29 21:09:01 +02:00
ArthurSonzogni
d232315f10
Optimize output with mixed pow/subscript.
...
This fixes:
https://github.com/ArthurSonzogni/Diagon/issues/1
2020-06-28 16:53:02 +02:00
ArthurSonzogni
dbc9b2ad5b
Math. Fix the translted greek letters.
...
This is related to issue:
https://github.com/ArthurSonzogni/Diagon/issues/6
2020-06-24 01:14:48 +02:00
ArthurSonzogni
2b2cde71a6
Fix function names in latex.
...
This is related to issue:
https://github.com/ArthurSonzogni/Diagon/issues/6
2020-06-24 01:03:23 +02:00
ArthurSonzogni
fda9a21cbd
Math > Fix latex braces output.
...
Related issue:
https://github.com/ArthurSonzogni/Diagon/issues/6
2020-06-24 00:34:20 +02:00
ArthurSonzogni
04068a7c56
Add tests for ascii mode in Math.
2020-06-21 18:42:13 +02:00
ArthurSonzogni
2f11c19648
Add the "Latex" output.
...
This addressed issue:
https://github.com/ArthurSonzogni/Diagon/issues/6
2020-06-20 17:58:22 +02:00
ArthurSonzogni
8dce6979d6
Expand the set of letters using in variables.
...
Unfortunately, it is still not possible to use "2u"o
This is related to issue:
https://github.com/ArthurSonzogni/Diagon/issues/2
2020-06-07 01:31:09 +02:00
ArthurSonzogni
2bd5b29344
Add support for braces {}
...
This fixes task [1/3] of:
https://github.com/ArthurSonzogni/Diagon/issues/2
2020-06-07 01:27:02 +02:00
ArthurSonzogni
7d52f4eb76
Add support for quoted strings.
...
Any string quoted will appear unquoted.
This fixes task [2/3] of:
https://github.com/ArthurSonzogni/Diagon/issues/2
2020-06-07 00:47:44 +02:00
ArthurSonzogni
4df472a2d2
Add support for subscript
...
Example:
Input:
┌───────────────────────────┐
│S_n = u_1 + u_2 + ... + u_n│
└───────────────────────────┘
Output:
┌───────────────────────┐
│S = u + u + ... + u │
│ n 1 2 n│
└───────────────────────┘
This fixes issue:
https://github.com/ArthurSonzogni/Diagon/issues/1
2020-05-18 15:07:41 +02:00
ArthurSonzogni
43e21c6b64
Add the command line tool.
2019-09-07 22:55:07 +02:00
Arthur Sonzogni
6bd7d2fbe1
Math: Add integral.
2018-05-21 17:54:33 +02:00
Arthur Sonzogni
291c7bffa7
Add more tests for Math > sqrt.
2018-05-13 03:38:46 +02:00
Arthur Sonzogni
96d799a9aa
Add Math translator.
2018-05-13 01:53:00 +02:00
Arthur Sonzogni
623a683d5f
Introduce options, implement it on all the translators.
2018-04-01 11:27:22 +02:00
Arthur Sonzogni
eec03027be
Make PlanarGraph correct and add tests.
2018-03-25 14:48:28 +02:00
Arthur Sonzogni
aab521f828
Add examples.
2018-02-08 23:16:24 +01:00
Arthur Sonzogni
4de9780acc
Add LineNumber, Improve GUI, Improve tests.
2018-02-05 21:54:42 +01:00