Commit Graph

8358 Commits

Author SHA1 Message Date
krangelov
7556662344 compile record expansions with let bindings to avoid duplication 2021-12-14 15:27:53 +01:00
krangelov
f332a03c79 support Ints n as a parameter type 2021-12-14 15:27:03 +01:00
krangelov
51e337a910 prevent the compilation of empty tokens 2021-12-14 11:39:18 +01:00
krangelov
48c40f3170 fix the pretty printing for linearization variables 2021-12-14 11:08:27 +01:00
krangelov
cbcbbc9134 if there are no productions for a function, don't create PgfConcrLin at all 2021-12-14 10:15:32 +01:00
krangelov
77693dca3e one more trivial optimization for string patterns 2021-12-14 09:25:08 +01:00
krangelov
4886c7ce3b optimize certain pathological pattern matchings for strings 2021-12-14 09:16:40 +01:00
krangelov
9efb6b002f if a module is compiled with -no-pmcfg the PMCFG is generated on demand 2021-12-13 11:17:10 +01:00
krangelov
88ac47621a remove deprecated module 2021-12-13 11:10:20 +01:00
krangelov
404feea345 a bit of refactoring 2021-12-13 11:04:13 +01:00
krangelov
bb053119b3 when a pattern macro is invoked, the operation must be computed first 2021-12-13 09:55:37 +01:00
krangelov
f7bf18d101 fix value2term for predefined functions 2021-12-13 09:44:28 +01:00
krangelov
ad4c5029a3 fix the implementation for Predef.tk & Predef.dp 2021-12-10 12:05:01 +01:00
krangelov
b0672afc67 fully implement the linearize command 2021-12-10 10:34:57 +01:00
krangelov
73c16504d2 added bracketedLinearizeAll 2021-12-10 10:30:25 +01:00
krangelov
3a39fb5f9d added tabularLinearizeAll 2021-12-10 09:56:51 +01:00
krangelov
494f4c8193 added linearizeAll 2021-12-10 09:13:45 +01:00
krangelov
9b0b038984 handle records of parameters 2021-12-09 17:45:39 +01:00
krangelov
e413293657 tabularLinearize should continue after nonExist 2021-12-09 15:04:19 +01:00
krangelov
1ccfdfce5f another update 2021-12-09 10:09:42 +01:00
krangelov
5b324faeec update the JavaScript tests 2021-12-09 10:07:21 +01:00
krangelov
7bbdbbe917 update the testsuite for python 2021-12-09 10:00:31 +01:00
krangelov
b0d364f8e8 implement tabularLinearize 2021-12-09 09:51:09 +01:00
krangelov
09de911499 drop the symbol_meta method 2021-12-09 08:56:32 +01:00
krangelov
72982d2344 added testsuite for linearization 2021-12-09 08:46:29 +01:00
krangelov
0069946f42 linearization for HOAS expressions 2021-12-09 08:45:53 +01:00
krangelov
d1b1cd6e8c an API for constructing HOAS expressions 2021-12-09 07:46:49 +01:00
krangelov
e312a10882 fix a potential crash 2021-12-08 19:34:28 +01:00
krangelov
a7686cddde detect an attempt to linearize tree with partial application 2021-12-08 19:32:53 +01:00
krangelov
3f8642d0b9 linearize discontinuous categories with linref 2021-12-08 15:49:13 +01:00
krangelov
ac3b654b6c handle functions without lin rules as well as meta variables 2021-12-08 12:00:53 +01:00
krangelov
cd3f290ff2 always generate PMCFG for the literal categories 2021-12-07 15:51:34 +01:00
krangelov
f71ba14f6a fix bracketed linearization for literals 2021-12-07 15:51:05 +01:00
krangelov
e177aa5d01 added graphiviz.cxx 2021-12-06 19:20:20 +01:00
krangelov
2c79b81565 missed graphviz.h 2021-12-06 19:05:32 +01:00
krangelov
d274f4856e compile lindef & linref rules 2021-12-06 15:47:57 +01:00
krangelov
0b8a1a0de8 fix the order in which HOAS variables are shown in pgf_graphviz_abstract_tree 2021-12-04 18:09:08 +01:00
krangelov
a3d680f317 restored graphvizAbstractTree 2021-12-04 16:05:24 +01:00
krangelov
3d1123eed4 restore graphvizParseTree 2021-12-04 14:12:23 +01:00
krangelov
bbff79aaa3 added API for print names 2021-12-03 16:49:36 +01:00
krangelov
655576c291 the variable labeling should start with 0. 2021-12-03 15:00:04 +01:00
krangelov
348963d13c flush the pre stack at the end of the linearization as well 2021-12-03 14:52:31 +01:00
krangelov
d10f63c16b fix the ranges for brackets around pre 2021-12-03 13:55:29 +01:00
krangelov
0132a70b94 take into account the order in which CAPIT && ALL_CAPIT appears 2021-12-03 11:40:00 +01:00
krangelov
df82e1e7ca complete the linearization of pre 2021-12-03 11:29:01 +01:00
krangelov
baf78528d3 implement bracketedLinearize 2021-12-03 09:44:03 +01:00
krangelov
dc344fccc0 detect failures to resolve linearization 2021-12-02 15:28:48 +01:00
krangelov
9ca68b1b4b support for Int,Float and String 2021-12-01 15:54:34 +01:00
krangelov
15c03816ea implemented nonExist 2021-12-01 14:10:34 +01:00
krangelov
7e1a2447c2 PgfSymbolLit is the same as PgfSymbolCat for the linearizer 2021-12-01 13:58:12 +01:00