Commit Graph

681 Commits

Author SHA1 Message Date
Arne Keller
8c9f2ab67c Instantiate abs step
see #18
2021-07-20 15:02:29 +02:00
Arne Keller
2e2b39c13b Show constraint in tooltip
part of #18
2021-07-20 09:35:39 +02:00
Arne Keller
ed7ce73679 Friendly error message for "λx.x in x" 2021-07-19 11:24:57 +02:00
Arne Keller
35013bd819 Show correct tooltips for polymorphic steps
fixes #16
2021-07-19 11:21:54 +02:00
Arne Keller
08085ad44d Fix parse error for "s:()"
see #15
2021-07-19 11:13:10 +02:00
Arne Keller
5e6cb6ca4c Generate useful error for TA input "s"
see #15
2021-07-19 11:06:56 +02:00
Arne Keller
0285305f13 Refactor ParseError into object instead of enum
See #12
2021-07-19 10:56:46 +02:00
Moritz Dieing
7310eec398 Exchange and add example term 2021-07-18 14:25:21 +02:00
Moritz Dieing
bf31ae5096 Remove useless type assumption examples 2021-07-13 12:07:59 +02:00
Arne Keller
3fdec5ff1b Highlight new constraint on step hover 2021-07-12 11:41:12 +02:00
Arne Keller
ab86590a3b Attach index to steps 2021-07-12 11:16:52 +02:00
Arne Keller
b0288a1e3e Focus correct input field on syntax error
fixes #11
2021-07-12 10:09:20 +02:00
Moritz Dieing
ca2ea6c277 Correct typo 2021-07-11 12:02:54 +02:00
Moritz Dieing
0cf0333289 Tooltip back-button in exampleDialog 2021-07-11 12:01:15 +02:00
Moritz Dieing
478cd97706 Update integration tests 2021-07-11 11:54:15 +02:00
Arne Keller
301af06c69 Improve type assumption error messages
includes codestyle fixes
2021-07-10 13:01:06 +02:00
Arne Keller
8be024eb65 Update translations 2021-07-10 12:35:49 +02:00
Arne Keller
660fe2b5d1 Add test for #2 2021-07-10 12:28:13 +02:00
Arne Keller
f3f3bbb77d More tests for #9 2021-07-10 12:23:05 +02:00
Arne Keller
57064aa5f1 Translation for TokenType.COMMA 2021-07-10 12:18:54 +02:00
Arne Keller
2715179182 Fix syntax error return in parenthesised term
part of #9
2021-07-10 12:17:47 +02:00
Arne Keller
7d4c724338 Change type assumptions permalink format 2021-07-10 12:10:54 +02:00
Arne Keller
c9cc12e922 Remove ParseError.TOO_FEW_TOKENS
fix another case of #9
2021-07-09 13:10:12 +02:00
Arne Keller
4b4f38ad31 ErrorView: handle unexpected EOF token 2021-07-09 13:02:19 +02:00
Arne Keller
f87a6820cc Fix checkstyle 2021-07-09 12:56:22 +02:00
Arne Keller
e2c874de5f Scoping ID to highlight type variables
This should fix #10
2021-07-09 12:46:24 +02:00
Arne Keller
1b70e374ac Correctly scope variables in type assumptions 2021-07-09 12:46:04 +02:00
Arne Keller
394b5a3d23 Reject duplicate quantified type variables 2021-07-09 12:26:18 +02:00
Arne Keller
df218d8be8 Set content in LocaleChangeEvent listener 2021-07-09 12:18:26 +02:00
Moritz Dieing
5ddfb355c2 Update info dialog 2021-07-05 21:16:47 +02:00
Moritz Dieing
60235bd757 Separate example assumptions by commas 2021-07-05 21:14:21 +02:00
Arne Keller
d1ea244254 Merge remote-tracking branch 'origin/master' 2021-07-05 19:03:40 +02:00
Arne Keller
6c9aca3eb6 Add test for part of #9 2021-07-05 19:03:05 +02:00
Moritz Dieing
5eb5cd1a6e Merge branch 'master' of https://git.scc.kit.edu/pse-typinferenz/typicalc 2021-07-05 18:01:40 +02:00
Moritz Dieing
1581985400 Add type assumption examples 2021-07-05 18:01:38 +02:00
Arne Keller
c28576175a Merge remote-tracking branch 'origin/master' 2021-07-05 12:28:45 +02:00
Arne Keller
df3f24548a Use state machine to parse type assumptions 2021-07-05 12:21:55 +02:00
Arne Keller
93ec136970 Show expected input in UI 2021-07-05 09:22:55 +02:00
Arne Keller
f6d0777fd0 Save expected input type in ParseError 2021-07-05 09:14:51 +02:00
Arne Keller
9c8d9423fc Add test for 7fb33b8 2021-07-05 08:58:40 +02:00
Arne Keller
8dd5753ee0 Highlight each type variable separately 2021-07-05 08:58:23 +02:00
Arne Keller
a0ae4f08b6 Fix type assumption highlight in let
Previously, (let g = λx.x in g) g was highlighted incorrectly
2021-07-05 08:58:08 +02:00
uogau
6f2c6b3481 Error messages now show whether the error is in the Term or the Type Assumptions 2021-07-02 16:46:01 +02:00
uogau
7243719667 Merge remote-tracking branch 'origin/master' 2021-07-02 16:10:59 +02:00
uogau
700f4bbde5 Error messages for Type Assumptions now show up correctly 2021-07-02 16:10:49 +02:00
Arne Keller
116aea51c3 Replace variables in MGU properly 2021-07-02 15:13:10 +02:00
Arne Keller
480275e3a7 Semantic highlighting of variables 2021-07-02 14:57:25 +02:00
Arne Keller
30b14a2e1a Merge remote-tracking branch 'origin/master' 2021-07-02 14:49:49 +02:00
Arne Keller
99e1eef0bc Calculate scope of VarTerms 2021-07-02 14:48:51 +02:00
Moritz Dieing
f928b2bae3 Optimise type assumption syntax 2021-07-02 14:47:25 +02:00
Arne Keller
72c1823763 Step definition tooltips
see #5
2021-06-29 16:27:25 +02:00
Arne Keller
5a79fc64de Another type assumption parser test 2021-06-29 14:52:06 +02:00
Moritz Dieing
602f6e04c4 Merge branch 'master' of https://git.scc.kit.edu/pse-typinferenz/typicalc 2021-06-29 12:41:55 +02:00
Moritz Dieing
8463a26f97 Reduce upper bar height 2021-06-29 12:41:48 +02:00
uogau
fea2b7035a Removed unnecessary information in error
changed spacing in error message
"Term" instead of "Input"
2021-06-29 12:25:35 +02:00
uogau
3477bff512 Fixed off by one error for english error message 2021-06-29 12:07:19 +02:00
Moritz Dieing
99c0e8332d Update InfoDialog and HelpDialog 2021-06-22 15:29:18 +02:00
Arne Keller
41479483f2 Highlight variables on hover
see issue #5
2021-06-22 09:44:03 +02:00
Arne Keller
74c21773d4 Only use hover classes when using Mathjax 2021-06-21 11:12:02 +02:00
Arne Keller
916f73927d Highlighting of types on hover
See issue #5
2021-06-21 10:53:03 +02:00
Arne Keller
5763c6b4ee Handly empty type assumptions 2021-06-18 15:22:24 +02:00
Arne Keller
87fd783025 Tweak syntax and display of type assumptions 2021-06-18 15:16:07 +02:00
Moritz Dieing
02f2216265 Merge branch 'master' of https://git.scc.kit.edu/pse-typinferenz/typicalc 2021-06-18 13:34:34 +02:00
Moritz Dieing
9ad8831ff2 Exchange TypeAssumption-Dialog with Textfield 2021-06-18 13:34:26 +02:00
uogau
08c3322fbb Small fix for last Commit 2021-06-18 13:28:50 +02:00
uogau
3a443d848a Error messages now show where the error is 2021-06-18 13:24:51 +02:00
Arne Keller
ce881354a0 Test quantified type assumptions 2021-06-17 09:00:30 +02:00
Arne Keller
b55c63acc0 Implement quantified variables in type assumptions
see issue #1
2021-06-17 08:48:46 +02:00
Moritz Dieing
9df9e657e1 Restructure upper bar 2021-06-16 15:37:35 +02:00
Arne Keller
94c70ea864 Link to the repository 2021-03-31 15:01:01 +02:00
Johanna Stuber
c1f14764c6 Merge branch 'master' of https://git.scc.kit.edu/pse-typinferenz/typicalc 2021-03-14 13:03:07 +01:00
Johanna Stuber
7ba30b4ef5 add sentence to error view 2021-03-14 13:02:34 +01:00
ucrhh
29caff2ead fix bug with unification translation 2021-03-14 11:53:10 +01:00
Johanna Stuber
276353a41f todos 2021-03-14 10:52:04 +01:00
Moritz Dieing
3f935bf29b Update Slideshow 2021-03-14 00:55:40 +01:00
Arne Keller
780d632d8a Codestyle 2021-03-13 15:34:59 +01:00
Moritz Dieing
9aa4ae9e56 IT for error view 2021-03-13 14:56:48 +01:00
Moritz Dieing
3110aa8bc0 tokentype english translation 2021-03-13 14:47:20 +01:00
ucrhh
3dd79320be make example buttons refresh on locale change 2021-03-13 12:26:23 +01:00
Arne Keller
dc60c58011 Add unit tests for new changes
- failed let in sub-tree (both cases)
- empty type assumptions of let
- constraint line breaking
- DoS protection
2021-03-12 20:23:45 +01:00
Moritz Dieing
f95ff0721a Simple ITs for Info- and HelpDialog 2021-03-12 15:55:32 +01:00
Arne Keller
caeb2fca84 Limit scope of close shortcut in type assumptions 2021-03-12 11:22:37 +01:00
Arne Keller
002f402691 Integration tests: run asserts last 2021-03-12 11:07:26 +01:00
Johanna Stuber
ebd6abb461 optimize texts 2021-03-11 16:44:09 +01:00
Johanna Stuber
648594bca3 add hr to footer, optimize styling 2021-03-11 16:22:20 +01:00
ucrhh
5197f9be93 Merge branch 'master' of https://git.scc.kit.edu/pse-typinferenz/typicalc 2021-03-11 15:11:39 +01:00
ucrhh
f409e1e060 some styling 2021-03-11 15:11:22 +01:00
Arne Keller
6b84aa5402 New example button in help dialog 2021-03-11 15:07:38 +01:00
ucrhh
0c2836a27f Merge branch 'master' of https://git.scc.kit.edu/pse-typinferenz/typicalc 2021-03-11 14:55:36 +01:00
ucrhh
73376c0667 make LaTeX code usable in normal environment 2021-03-11 14:55:21 +01:00
Arne Keller
0e468b5611 New example button text 2021-03-11 14:44:25 +01:00
Arne Keller
d8b547177a Display expected tokens on ParseError 2021-03-11 14:30:48 +01:00
uogau
9767002ad1 Merge remote-tracking branch 'origin/master' 2021-03-11 13:34:59 +01:00
uogau
53243f7f43 Added hint to type assumptions 2021-03-11 13:34:41 +01:00
Arne Keller
098be7a75e Encode input correctly 2021-03-11 13:29:33 +01:00
uogau
26caed074d Type and LetTerm are now abstract classes again 2021-03-11 13:11:33 +01:00
Moritz Dieing
4e56c69833 Update Drawer in HelpDialog 2021-03-11 10:36:00 +01:00
Arne Keller
3c0347492a Consistent latex export 2021-03-11 08:32:19 +01:00
ucrhh
1ee86c5c32 fix checkstyle 2021-03-11 00:41:08 +01:00
ucrhh
1d53bdfe75 first implementation of unification export 2021-03-11 00:37:36 +01:00