forked from rljacobson/FoxySheep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
935 lines (705 loc) · 36.7 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
2020-09-05 rocky <[email protected]>
* FoxySheep/version.py: Get ready for release 1.2.3
2020-09-05 rocky <[email protected]>
* .travis.yml, pytest/parse_expressions/mockmma.m,
pytest/parse_expressions/numpy.yaml, pytest/test_numpy.py: Start
testing numpy
2020-09-04 rocky <[email protected]>
* FoxySheep/transform/if2py.py,
pytest/parse_expressions/fi4cpy.yaml,
pytest/parse_expressions/mockmma.m,
pytest/parse_expressions/numpy.yaml: Add Comparisons and mma
examples from mockmma
2020-09-04 rocky <[email protected]>
* FoxySheep/__main__.py, FoxySheep/transform/if2py.py: First cut at
Set[]
2020-09-03 rocky <[email protected]>
* FoxySheep/__main__.py, FoxySheep/transform/if2py.py: Add factorial
and scipy
2020-09-03 rocky <[email protected]>
* FoxySheep/__main__.py, FoxySheep/transform/if2py.py,
pytest/parse_expressions/fi4cpy.yaml: Handle negative
AccessExpressionA (subscripts) Need to add 1 to negative subscripts to get corresponding Python
(negative) subscript. __main__.py start importing pymma library
2020-08-29 rocky <[email protected]>
* FoxySheep/emitter/input_form.py, FoxySheep/pymma.py,
FoxySheep/transform/if2py.py,
pytest/parse_expressions/SimpleAlgebraicFF.m,
pytest/parse_expressions/input2py.yaml,
pytest/parse_expressions/table.yaml, pytest/test_if2py.py,
pytest/test_translations.py: Handle SymbolLiteral more properly ... Embedded GreekSymbols now handled inside SymbolLiteral Start
mathematica library in Python
2020-08-08 rocky <[email protected]>
* FoxySheep/transform/if2py.py, FoxySheep/utils/MMA2Unicode.py,
resources/2unicode.py: Conver Unicode table into Python dictionary
2020-08-08 R. Bernstein <[email protected]>
* : Merge pull request #3 from rljacobson/FoxySheep2 Added resources/UnicodeLongNames.csv
2020-08-04 rocky <[email protected]>
* FoxySheep/generated/InputFormLexer.py,
FoxySheep/transform/if2py.py, grammar/InputFormLexerRules.g4,
pytest/parse_expressions/SO1.m: Greek and other symbols to Python
Unicode As always, there is more to do. In particular for Python we handle
only single-letters, not names with embedded greek letters and
symbols.
2020-08-04 rocky <[email protected]>
* FoxySheep/generated/FullFormLexer.py,
FoxySheep/generated/FullFormParser.py,
FoxySheep/generated/InputFormLexer.py,
FoxySheep/generated/InputFormParser.py,
grammar/FullFormLexerRules.g4, grammar/InputFormLexerRules.g4,
pytest/parse_expressions/SimpleAlgebraic.m,
pytest/parse_expressions/SimpleAlgebraicFF.m: Add variant and greek
letters
2020-08-03 rocky <[email protected]>
* ChangeLog, FoxySheep/version.py, NEWS.md: Get ready for release
1.2.2
2020-08-03 rocky <[email protected]>
* FoxySheep/__main__.py, FoxySheep/transform/if2py.py, README.rst,
pytest/parse_expressions/SO1.m: Add file reader. Handle some
FullForm fns... New `foxy-sheep` option `--file` (`-f`) to read expressions from a
file Add examples from
https://mathematica.stackexchange.com/a/144200/73996
2020-08-03 rocky <[email protected]>
* FoxySheep/__main__.py, FoxySheep/emitter/full_form.py,
FoxySheep/emitter/python.py, FoxySheep/parser.py,
FoxySheep/transform/if2py.py, pytest/test_translations.py: Start
adding sympy and numpy modes
2020-08-03 rocky <[email protected]>
* FoxySheep/transform/if2py.py, demo.py,
pytest/parse_expressions/SO1.m: More examples from Stack Overflow... Add a few more math functions and revise demo.py a little.
2020-08-03 rocky <[email protected]>
* FoxySheep/transform/if2py.py: More ast generation cleanup
2020-08-03 rocky <[email protected]>
* FoxySheep/transform/if2py.py,
pytest/parse_expressions/fi4cpy.yaml: Start handling Table (range
only) Simplfy some ast.BinOp generator calls
2020-08-03 rocky <[email protected]>
* FoxySheep/__main__.py, README.rst: Make `In[]` and `Out[]` indexes
match MMa's
2020-08-03 rocky <[email protected]>
* FoxySheep/transform/if2py.py,
pytest/parse_expressions/fi4cpy.yaml: Handle range more properly... * Wrap into a list() * Adjust uppper bound with +1
2020-08-02 rocky <[email protected]>
* README.rst: Note use of Python module astor
2020-08-02 rocky <[email protected]>
* admin_tools/how-to-make-a-release.md: Administrivia
2020-08-02 rocky <[email protected]>
* ChangeLog, FoxySheep/version.py, NEWS.md: Get ready for release
1.2.1
2020-08-02 rocky <[email protected]>
* FoxySheep/transform/if2py.py, README.md, README.rst,
pytest/parse_expressions/fi4cpy.yaml, pytest/test_translations.py:
Handle index 1 vs index 0
2020-08-02 rocky <[email protected]>
* FoxySheep/emitter/full_form.py, FoxySheep/transform/if2py.py,
pytest/parse_expressions/fi4cpy.yaml,
pytest/parse_expressions/input2full.yaml,
pytest/test_translations.py: Add subscripting lists
2020-08-02 rocky <[email protected]>
* FoxySheep/emitter/full_form.py, FoxySheep/transform/if2py.py,
pytest/parse_expressions/fi4mspy.yaml,
pytest/parse_expressions/input2py.yaml,
pytest/test_translations.py, tox.ini: Expand test. Fix misc bugs
2020-08-01 rocky <[email protected]>
* pytest/parse_expressions/fi4mspy.yaml,
pytest/test_translations.py: Reinstate some tests
2020-08-01 rocky <[email protected]>
* FoxySheep/__main__.py, FoxySheep/emitter/full_form.py,
FoxySheep/emitter/python.py, FoxySheep/parser.py,
FoxySheep/transform/if2py.py, setup.py: Add --debug/-d option ... In translation to Python, we will use the astpretty module for
dumping the Python AST.
2020-07-29 rocky <[email protected]>
* FoxySheep/transform/if2py.py, FoxySheep/tree/pretty_printer.py,
README.md, README.rst, pytest/parse_expressions/fi4mspy.yaml,
pytest/parse_expressions/fi4mspy.yml,
pytest/parse_expressions/input2py.yaml, pytest/test_translations.py:
Start string literals... Tests were inadvertently skipped. Fix that. However a number of tests are commented out until we get bugs fixed. g
2020-07-29 rocky <[email protected]>
* FoxySheep/transform/if2py.py,
pytest/parse_expressions/input2py.yaml: Handle numberLiteral with
numberLiteralExponent See
https://mathematica.stackexchange.com/questions/85445/convert-mathematica-math-expression-form-to-python-math-expression/226648?noredirect=1#comment576795_226648
2020-07-28 rocky <[email protected]>
* FoxySheep/transform/if2py.py: Add symbol E and more numbers.. MMa numbers are even more complicated than I had thought. Punt on
numberLiteralPrecision and numberLiteralExponent for now
2020-07-28 rocky <[email protected]>
* admin_tools/how-to-make-a-release.md: Administrivia
2020-07-28 rocky <[email protected]>
* ChangeLog, FoxySheep/__main__.py, FoxySheep/version.py, NEWS.md,
README.md, README.rst, admin_tools/how-to-make-a-release.md: Get
ready for release 1.2.0
2020-07-28 rocky <[email protected]>
* FoxySheep/__main__.py, FoxySheep/transform/if2py.py: Add a couple
more function translations... It is rough, but we'll fix that up later, perhaps
2020-07-28 rocky <[email protected]>
* FoxySheep/transform/if2py.py,
pytest/parse_expressions/fi4mspy.yml: Translate lists; {} -> []
basically
2020-07-28 rocky <[email protected]>
* FoxySheep/tree/pretty_printer.py,
pytest/parse_expressions/fi4mspy.yml,
pytest/parse_expressions/input2full.yaml,
pytest/parse_expressions/input2py.yaml: Show "visit" name in pretty
printing tree
2020-07-27 rocky <[email protected]>
* FoxySheep/__main__.py, FoxySheep/transform/if2py.py,
pytest/parse_expressions/fi4mspy.yml: Start handling functions
2020-07-27 rocky <[email protected]>
* FoxySheep/__main__.py, FoxySheep/transform/if2py.py,
pytest/parse_expressions/fi4mspy.yml, pytest/test_parser.py: Handle
times and subtract better... Start adding examples from Fast Introduction for Math Students
2020-07-27 rocky <[email protected]>
* FoxySheep/__main__.py, FoxySheep/parser.py,
FoxySheep/transform/if2py.py, pytest/test_parser.py: Don't flatten
when going to Python When going to full form `1 + 2 + 3` -> `PlusOp[1,2,3]` and so args
1,2,3 appear in a list. However when going to Python we keep this structure. The first 3 examples of
https://www.wolfram.com/language/fast-introduction-for-math-students/en/entering-input/now work
2020-07-27 rocky <[email protected]>
* FoxySheep/__main__.py, FoxySheep/transform/if2py.py: Start
eval'ing and saving results
2020-07-27 rocky <[email protected]>
* FoxySheep/__init__.py, FoxySheep/__main__.py,
FoxySheep/parser.py, FoxySheep/transform/if2py.py, README.md,
README.rst, pytest/test_parser.py: Split out and test lexer/parser
combo
2020-07-26 rocky <[email protected]>
* FoxySheep/transform/if2py.py, NEWS.md,
admin_tools/how-to-make-a-release.md,
pytest/parse_expressions/input2py.yaml: Start adding MMA Symbol ->
Python Name
2020-07-23 rocky <[email protected]>
* ChangeLog, FoxySheep/__init__.py, FoxySheep/version.py, Makefile,
README.md, README.rst, admin_tools/how-to-make-a-release.md: Get
ready for release 1.1.0
2020-07-23 rocky <[email protected]>
* README.md, README.rst: Add TravisCI badge to README's README.md has been made more like README.rst
2020-07-23 rocky <[email protected]>
* .travis.yml, FoxySheep/__init__.py, FoxySheep/transform/if2py.py,
pytest/parse_expressions/input2py.yaml,
pytest/test_translations.py, setup.py: Try TravisCI
2020-07-20 rocky <[email protected]>
* pytest/parse_expressions/input2full.yaml, pytest/{test_numbers.py
=> test_translations.py}, requirements-dev.txt: Start putting tests
in YAML... and DRY test program
2020-07-19 rocky <[email protected]>
* FoxySheep/transform/if2py.py, grammar/InputForm.g4,
pytest/test_numbers.py: Start unary operators... Add parenthesis handling. More tests and clean tests up a little.
2020-07-19 rocky <[email protected]>
* FoxySheep/emitter/full_form.py,
FoxySheep/generated/InputFormParser.py,
FoxySheep/transform/if2py.py, FoxySheep/tree/pretty_printer.py:
top-level MMA can be an expression list... Simplify pretty_printer
2020-07-19 rocky <[email protected]>
* FoxySheep/__main__.py, FoxySheep/transform/if2py.py,
FoxySheep/transform/if_transform.py, README.md,
pytest/test_numbers.py: Handle more MMA to Python conversions
2020-07-19 rocky <[email protected]>
* Makefile, pytest/test_numbers.py: Expand unit test And expand Makefile for boilerplate for testing
2020-07-18 rocky <[email protected]>
* demo.py: Get demo.py working again
2020-07-18 rocky <[email protected]>
* FoxySheep/__init__.py, FoxySheep/__main__.py,
FoxySheep/tree/__init__.py, FoxySheep/tree/pretty_printer.py,
pytest/test_numbers.py: Our first test.
2020-07-18 rocky <[email protected]>
* FoxySheep/__main__.py, FoxySheep/transform/if_transform.py: Move
transform function to transform directory
2020-07-18 rocky <[email protected]>
* FoxySheep/__main__.py, FoxySheep/emitter/full_form.py,
FoxySheep/transform/if2py.py, README-orig.md: Clean up in
preparation for testing
2020-07-18 rocky <[email protected]>
* .gitignore, FoxySheep/__init__.py, FoxySheep/__main__.py,
FoxySheep/emitter/__init_.py, FoxySheep/emitter/full_form.py,
FoxySheep/emitter/python.py, FoxySheep/transform/if2py.py: Start
InputForm to Python conversion
2020-07-18 rocky <[email protected]>
* FoxySheep/emitter/full_form.py, FoxySheep/transform/__init__.py,
FoxySheep/transform/if2py.py, {ParseExpressions =>
pytest/parse_expressions}/FullFormFunctionDefinition.m,
{ParseExpressions => pytest/parse_expressions}/NumberLiterals.m,
{ParseExpressions => pytest/parse_expressions}/Oddities.m,
pytest/parse_expressions/README.md, {ParseExpressions =>
pytest/parse_expressions}/SimpleAlgebraic.m, {ParseExpressions =>
pytest/parse_expressions}/SimpleAlgebraicFF.m, setup.py: Start
InputForm->Python translation... Move ParseExpressions into pytest which will be filled out later
Remove some CamelCase function names
2020-07-17 rocky <[email protected]>
* FoxySheep/AST/__init__.py, FoxySheep/AST/pattern/__init__.py,
FoxySheep/__init__.py, FoxySheep/__main__.py,
FoxySheep/errors/error_handler.py, FoxySheep/scoping/Scope.py,
FoxySheep/scoping/Symbol.py, FoxySheep/scoping/__init__.py,
FoxySheep/tree/__init__.py, FoxySheep/{AST => tree}/functions.py,
FoxySheep/{AST => tree}/ir/FunctionSignatureNode.py, FoxySheep/{AST
=> tree}/ir/__init__.py, FoxySheep/{AST => tree}/nodes.py,
FoxySheep/{AST => tree}/pattern/AlternativeNode.py, FoxySheep/{AST
=> tree}/pattern/BlankAbstractNode.py, FoxySheep/{AST =>
tree}/pattern/BlankNode.py, FoxySheep/{AST =>
tree}/pattern/BlankNullSequenceNode.py, FoxySheep/{AST =>
tree}/pattern/BlankSequenceNode.py, FoxySheep/{AST =>
tree}/pattern/ConditionNode.py, FoxySheep/{AST =>
tree}/pattern/DefaultNode.py, FoxySheep/{AST =>
tree}/pattern/OptionalNode.py, FoxySheep/{AST =>
tree}/pattern/OptionsPatternNode.py, FoxySheep/{AST =>
tree}/pattern/PatternNode.py, FoxySheep/{AST =>
tree}/pattern/PatternTestNode.py, FoxySheep/{AST =>
tree}/pattern/RepeatedNode.py, FoxySheep/{AST =>
tree}/pattern/RepeatedNullNode.py,
FoxySheep/tree/pattern/__init__.py, FoxySheep/{AST =>
tree}/pretty_printer.py, FoxySheep/{AST => tree}/symbol_node.py,
FoxySheep/utils/PatternMatcher.py: AST -> tree ... and another module name is downcased.
2020-07-17 rocky <[email protected]>
* FoxySheep/AST/__init__.py, FoxySheep/{ => AST}/pretty_printer.py,
FoxySheep/__init__.py, FoxySheep/__main__.py,
FoxySheep/emitter/__init_.py, FoxySheep/{full_form_emitter.py =>
emitter/full_form.py}: Tidy where things go
2020-07-17 rocky <[email protected]>
* FoxySheep/__main__.py,
FoxySheep/generated/FullForm.lexer.py.patch,
FoxySheep/generated/FullFormLexer.py,
FoxySheep/generated/InputForm.lexer.py.patch,
FoxySheep/generated/InputFormLexer.lexer.py.patch,
FoxySheep/generated/InputFormLexer.py,
FoxySheep/generated/InputFormVisitor.py,
FoxySheep/generated/README.md, FoxySheep/{LexerBase.py =>
lexer_base.py}, README.md, grammar/InputFormLexerRules.g4:
FoxySheepParser->InputFormParser again... Also remove camelcase for one more module
2020-07-17 rocky <[email protected]>
* FoxySheep/__main__.py, FoxySheep/pretty_printer.py: Add full and
compact tree printing Using options --tree={full|compact}
2020-07-16 rocky <[email protected]>
* .gitignore, FoxySheep/__main__.py, FoxySheep/generated/README.md,
FoxySheep/pretty_printer.py: Add a rudimentary parse tree pretty
printer
2020-07-16 rocky <[email protected]>
* FoxySheep/LexerBase.py, FoxySheep/LexerPreface.py,
FoxySheep/__init__.py, FoxySheep/__main__.py,
FoxySheep/{FullFormEmitter.py => full_form_emitter.py},
FoxySheep/generated/.gitignore,
FoxySheep/generated/FoxySheep.lexer.py.patch,
FoxySheep/generated/FoxySheepListener.py,
FoxySheep/generated/FoxySheepVisitor.py,
FoxySheep/generated/InputFormLexer.lexer.py.patch,
FoxySheep/generated/{FoxySheepLexer.py => InputFormLexer.py},
FoxySheep/generated/InputFormListener.py,
FoxySheep/generated/{FoxySheepParser.py => InputFormParser.py},
FoxySheep/generated/InputFormVisitor.py, FoxySheep/{PostParser.py
=> post_parser.py}, Makefile, grammar/FullFormLexer.lexer.py.patch,
grammar/{FoxySheep.g4 => InputForm.g4}, grammar/{FoxySheep.iml =>
InputForm.iml}, grammar/{FoxySheepLexerRules.g4 =>
InputFormLexerRules.g4}: parsed input can be FullForm or
InputForm... I know this seems silly, since right now there is only a FullForm
output and FullForm -> FullForm should be a no-op (but sometimes it
isn't). However in the long term, I hope there are other kinds of output
like sage. The FoxySheep{Parser,Listener,Visitor} modules and classes have been
renamed to InputForm since that is Mathematica's terminology and
that pairs with the name FullForm better.
2020-07-16 rocky <[email protected]>
* FoxySheep/__main__.py, FoxySheep/generated/.gitignore,
FoxySheep/generated/FoxySheep.lexer.py.patch,
FoxySheep/generated/FoxySheepLexer.py,
FoxySheep/generated/FullForm.lexer.py.patch,
FoxySheep/generated/FullFormLexer.py, Makefile,
grammar/FullFormLexer.lexer.py.patch: Add CLI option to choose input
style Style is either InputForm or FullForm. Makefile: correct target for building FullForm. It needs patching
just like FoxySheep does. Also we add targets for building the Lexer
files. Add the patch needed for FullForm.lexer.py Warning: I think FullForm has bugs in reporting it parse errors.
2020-07-15 rocky <[email protected]>
* .gitignore, ChangeLog, Makefile, README.md, README.rst,
admin_tools/how-to-make-a-release.md, admin_tools/make-dist.sh,
admin_tools/pyenv-versions, doc/NEWS.md, setup.py: Get ready for
release 1.0.0
2020-07-15 rocky <[email protected]>
* FoxySheep/__main__.py: Small tweak in REPL input handling
2020-07-15 rocky <[email protected]>
* FoxySheep/__main__.py, FoxySheep/scoping/Scope.py,
FoxySheep/version.py, setup.py: Add --expr and --version options
2020-07-15 rocky <[email protected]>
* FoxySheep/AST/__init__.py, FoxySheep/AST/{Functions.py =>
functions.py}, FoxySheep/AST/ir/FunctionSignatureNode.py,
FoxySheep/AST/{ASTNode.py => nodes.py},
FoxySheep/AST/{SymbolNode.py => symbol_node.py}, FoxySheep/{types
=> foxy_types}/__init__.py, FoxySheep/{types/Types.py =>
foxy_types/types.py}, FoxySheep/scoping/Scope.py,
FoxySheep/scoping/Symbol.py, FoxySheep/scoping/__init__.py: Relative
import removal
2020-07-15 rocky <[email protected]>
* README.md: Small README changes
2020-07-15 rocky <[email protected]>
* FoxySheep/AST/ASTNode.py, FoxySheep/AST/Functions.py,
FoxySheep/Passes/.gitignore, FoxySheep/Passes/ASTVisitor.py,
FoxySheep/Passes/__init__.py, FoxySheep/Scoping/__init__.py,
FoxySheep/Utils/__init__.py, FoxySheep/__main__.py,
FoxySheep/{Errors => errors}/__init__.py,
FoxySheep/{Errors/ErrorHandler.py => errors/error_handler.py},
FoxySheep/{Scoping => scoping}/Scope.py, FoxySheep/{Scoping =>
scoping}/Symbol.py, FoxySheep/{Scoping =>
scoping}/VirtualSymbols.py, FoxySheep/scoping/__init__.py,
FoxySheep/{Types => types}/Types.py, FoxySheep/{Types =>
types}/__init__.py, FoxySheep/{Utils => utils}/Mathematica.py,
FoxySheep/{Utils => utils}/PatternMatcher.py, FoxySheep/{Utils =>
utils}/WolframLanguageData.py, FoxySheep/utils/__init__.py,
FoxySheep/{Utils => utils}/misc.py: Start using Python-style module
names... No CamelCase but lowercase with underscores
2020-07-15 rocky <[email protected]>
* .gitignore, ParseExpressions/NumberLiterals.m,
doc/DifferencesFromMathematica.md,
doc/TranslateToPythonBrainstorm.md, grammar/FoxySheep.iml: Track
Robert's changes of 18 days ago Specifically ffc923a Note we don't accept all of the changes. The `chmod +x` is a bit
weird and may be "bit rot". Not sure what the `.iml` stuff is but
we took it.
2020-07-14 rocky <[email protected]>
* .gitignore, {python_target/FoxySheep => FoxySheep}/.gitignore,
{python_target/FoxySheep => FoxySheep}/AST/ASTNode.py,
{python_target/FoxySheep => FoxySheep}/AST/Functions.py,
{python_target/FoxySheep => FoxySheep}/AST/SymbolNode.py,
{python_target/FoxySheep => FoxySheep}/AST/__init__.py,
{python_target/FoxySheep =>
FoxySheep}/AST/ir/FunctionSignatureNode.py,
{python_target/FoxySheep => FoxySheep}/AST/ir/__init__.py,
{python_target/FoxySheep =>
FoxySheep}/AST/pattern/AlternativeNode.py, {python_target/FoxySheep
=> FoxySheep}/AST/pattern/BlankAbstractNode.py,
{python_target/FoxySheep => FoxySheep}/AST/pattern/BlankNode.py,
{python_target/FoxySheep =>
FoxySheep}/AST/pattern/BlankNullSequenceNode.py,
{python_target/FoxySheep =>
FoxySheep}/AST/pattern/BlankSequenceNode.py,
{python_target/FoxySheep =>
FoxySheep}/AST/pattern/ConditionNode.py, {python_target/FoxySheep
=> FoxySheep}/AST/pattern/DefaultNode.py, {python_target/FoxySheep
=> FoxySheep}/AST/pattern/OptionalNode.py, {python_target/FoxySheep
=> FoxySheep}/AST/pattern/OptionsPatternNode.py,
{python_target/FoxySheep => FoxySheep}/AST/pattern/PatternNode.py,
{python_target/FoxySheep =>
FoxySheep}/AST/pattern/PatternTestNode.py, {python_target/FoxySheep
=> FoxySheep}/AST/pattern/RepeatedNode.py, {python_target/FoxySheep
=> FoxySheep}/AST/pattern/RepeatedNullNode.py,
{python_target/FoxySheep => FoxySheep}/AST/pattern/__init__.py,
{python_target/FoxySheep => FoxySheep}/Errors/ErrorHandler.py,
{python_target/FoxySheep => FoxySheep}/Errors/__init__.py,
{python_target/FoxySheep => FoxySheep}/FullFormEmitter.py,
{python_target/FoxySheep => FoxySheep}/LexerBase.py,
{python_target/FoxySheep => FoxySheep}/LexerPreface.py,
{python_target/FoxySheep/generated => FoxySheep/Passes}/.gitignore,
{python_target/FoxySheep => FoxySheep}/Passes/ASTVisitor.py,
{python_target/FoxySheep => FoxySheep}/Passes/__init__.py,
{python_target/FoxySheep => FoxySheep}/PostParser.py,
{python_target/FoxySheep => FoxySheep}/Scoping/Scope.py,
{python_target/FoxySheep => FoxySheep}/Scoping/Symbol.py,
{python_target/FoxySheep => FoxySheep}/Scoping/VirtualSymbols.py,
FoxySheep/Scoping/__init__.py, {python_target/FoxySheep =>
FoxySheep}/Types/Types.py, {python_target/FoxySheep =>
FoxySheep}/Types/__init__.py, {python_target/FoxySheep =>
FoxySheep}/Utils/Mathematica.py, {python_target/FoxySheep =>
FoxySheep}/Utils/PatternMatcher.py, {python_target/FoxySheep =>
FoxySheep}/Utils/WolframLanguageData.py, {python_target/FoxySheep
=> FoxySheep}/Utils/__init__.py, {python_target/FoxySheep =>
FoxySheep}/Utils/misc.py, {python_target/FoxySheep =>
FoxySheep}/__init__.py, python_target/FoxySheep.py =>
FoxySheep/__main__.py, FoxySheep/generated/.gitignore,
FoxySheep/generated/FoxySheep.lexer.py.patch,
FoxySheep/generated/FoxySheepLexer.py,
FoxySheep/generated/FoxySheepListener.py,
FoxySheep/generated/FoxySheepParser.py,
FoxySheep/generated/FoxySheepVisitor.py, {python_target/FoxySheep
=> FoxySheep}/generated/FullFormLexer.py, {python_target/FoxySheep
=> FoxySheep}/generated/FullFormListener.py,
{python_target/FoxySheep => FoxySheep}/generated/FullFormParser.py,
{python_target/FoxySheep =>
FoxySheep}/generated/FullFormVisitor.py, {python_target/FoxySheep
=> FoxySheep}/generated/__init__.py, Makefile, Notes.md,
{unit_tests/ParseExpressions =>
ParseExpressions}/FullFormFunctionDefinition.m,
{unit_tests/ParseExpressions => ParseExpressions}/NumberLiterals.m,
{unit_tests/ParseExpressions => ParseExpressions}/Oddities.m,
{unit_tests/ParseExpressions =>
ParseExpressions}/SimpleAlgebraic.m, {unit_tests/ParseExpressions
=> ParseExpressions}/SimpleAlgebraicFF.m, README-orig.md,
README.md, demo.py, FoxySheep.g4 => grammar/FoxySheep.g4,
FoxySheepLexerRules.g4 => grammar/FoxySheepLexerRules.g4,
FullForm.g4 => grammar/FullForm.g4, FullFormLexerRules.g4 =>
grammar/FullFormLexerRules.g4, python_target/lexermembers.py =>
lexermembers.py, python_target/makeexit.py => makeexit.py,
python_target/.gitignore,
python_target/FoxySheep/Scoping/__init__.py,
python_target/FoxySheep/generated/FullForm.tokens,
python_target/FoxySheep/generated/FullFormLexer.tokens,
python_target/Makefile, python_target/README.md,
python_target/tools/__init__.py, python_target/setup.py =>
setup.py, {python_target/tools => tools}/ASTClasses.py,
{python_target/tools => tools}/CodeWriter.ipynb, {python_target =>
tools}/__init__.py: Add demo program and reorganize more
2020-07-14 rocky <[email protected]>
* java_target/Makefile, java_target/Notes.md,
java_target/src/FoxySheep.java,
java_target/src/FullFormEmitter.java,
java_target/src/LexerBase.java, java_target/src/PostParser.java,
python_target/.gitignore, python_target/FoxySheep/.gitignore,
python_target/FoxySheep/LexerPreface.py,
python_target/FoxySheep/__init__.py,
python_target/FoxySheep/generated/.gitignore,
python_target/FoxySheep/generated/FullFormLexer.py,
python_target/FoxySheep/generated/FullFormListener.py,
python_target/FoxySheep/generated/FullFormParser.py,
python_target/FoxySheep/generated/FullFormVisitor.py,
python_target/README.md, python_target/setup.py: Tweaks for
Python-only use Remove java_target stuff Regenerate parsers. Warning: for
somereaseon the Lexer doesn't import from LexerBase so that was
changed by hand. Add some .gitignores Add a setup.py
2018-07-17 Robert Jacobson <[email protected]>
* .gitignore, CONTRIBUTING.md, doc/DifferencesFromMathematica.md,
doc/KnownBugs.md, doc/Symbol Table Design.md,
doc/TranslateToPythonNotes.md, doc/TranslateToPythonRoadmap.md,
doc/TranslatorRoadmap.md, doc/index.md, python_target/FoxySheep.py,
python_target/FoxySheep/AST/ASTNode.py,
python_target/FoxySheep/AST/Functions.py,
python_target/FoxySheep/AST/Scope.py,
python_target/FoxySheep/AST/SymbolNode.py,
python_target/FoxySheep/AST/Types.py,
python_target/FoxySheep/AST/__init__.py,
python_target/FoxySheep/AST/ir/FunctionSignatureNode.py,
python_target/FoxySheep/AST/ir/__init__.py,
python_target/FoxySheep/AST/pattern/AlternativeNode.py,
python_target/FoxySheep/AST/pattern/BlankAbstractNode.py,
python_target/FoxySheep/AST/pattern/BlankNode.py,
python_target/FoxySheep/AST/pattern/BlankNullSequenceNode.py,
python_target/FoxySheep/AST/pattern/BlankSequenceNode.py,
python_target/FoxySheep/AST/pattern/ConditionNode.py,
python_target/FoxySheep/AST/pattern/DefaultNode.py,
python_target/FoxySheep/AST/pattern/OptionalNode.py,
python_target/FoxySheep/AST/pattern/OptionsPatternNode.py,
python_target/FoxySheep/AST/pattern/PatternNode.py,
python_target/FoxySheep/AST/pattern/PatternTestNode.py,
python_target/FoxySheep/AST/pattern/RepeatedNode.py,
python_target/FoxySheep/AST/pattern/RepeatedNullNode.py,
python_target/FoxySheep/AST/pattern/__init__.py,
python_target/FoxySheep/Errors/ErrorHandler.py,
python_target/FoxySheep/Errors/__init__.py,
python_target/FoxySheep/Passes/ASTVisitor.py,
python_target/FoxySheep/Passes/__init__.py,
python_target/FoxySheep/Scoping/Scope.py,
python_target/FoxySheep/Scoping/Symbol.py,
python_target/FoxySheep/Scoping/VirtualSymbols.py,
python_target/FoxySheep/Scoping/__init__.py,
python_target/FoxySheep/Types/Types.py,
python_target/FoxySheep/Types/__init__.py,
python_target/FoxySheep/Utils/Mathematica.py,
python_target/FoxySheep/Utils/PatternMatcher.py,
python_target/FoxySheep/Utils/WolframLanguageData.py,
python_target/FoxySheep/Utils/__init__.py,
python_target/FoxySheep/Utils/misc.py, python_target/README.md,
python_target/__init__.py, python_target/tools/ASTClasses.py,
python_target/tools/CodeWriter.ipynb,
python_target/tools/__init__.py: Significant work on pattern
matcher, symbols and scopes. Other minor work.
2018-06-30 Robert Jacobson <[email protected]>
* CONTRIBUTING.md, README.md, doc/TranslateToPythonNotes.md,
doc/TranslatorRoadmap.md, doc/index.md, python_target/FoxySheep.py,
python_target/FoxySheep/AST/ASTNode.py,
python_target/FoxySheep/AST/Scope.py,
python_target/FoxySheep/AST/Types.py,
python_target/FoxySheep/AST/__init__.py,
python_target/FoxySheep/FullFormEmitter.py,
python_target/FoxySheep/__init__.py: Initial commit of AST design.
2017-10-15 Robert Jacobson <[email protected]>
* CONTRIBUTING.md, doc/DifferencesFromMathematica.md,
doc/TranslateToPythonNotes.md, doc/index.md, java_target/Makefile,
java_target/src/FoxySheep.java, java_target/src/PostParser.java,
python_target/FoxySheep.py,
python_target/FoxySheep/FullFormEmitter.py,
python_target/FoxySheep/generated/FullForm.tokens,
python_target/FoxySheep/generated/FullFormLexer.py,
python_target/FoxySheep/generated/FullFormLexer.tokens,
python_target/FoxySheep/generated/FullFormListener.py,
python_target/FoxySheep/generated/FullFormParser.py,
python_target/FoxySheep/generated/FullFormVisitor.py,
python_target/Makefile, python_target/makeexit.py: Both targets now
have supporting code for the FullForm parser. Added simple REPL to
"main" functions for debugging.
2017-10-07 Robert Jacobson <[email protected]>
* python_target/FoxySheep.py,
python_target/FoxySheep/FullFormEmitter.py,
python_target/FoxySheep/{Lexer.py => LexerBase.py},
python_target/FoxySheep/LexerPreface.py,
python_target/FoxySheep/PostParser.py, python_target/Makefile,
python_target/README.md, python_target/example.py: Added poster
parser to Python target, added simple REPL. Python target now how
feature parity with Java target.
2017-10-07 Robert Jacobson <[email protected]>
* .gitignore, FoxySheep.g4, FoxySheepLexerRules.g4, Notes.md,
README.md, doc/TranslateToPythonNotes.md, java_target/Makefile,
java_target/Notes.md, java_target/src/FoxySheep.java,
java_target/src/FullFormEmitter.java, java_target/src/{Lexer.java
=> LexerBase.java}, java_target/src/PostParser.java,
unit_tests/ParseExpressions/SimpleAlgebraic.m,
unit_tests/ParseExpressions/SimpleAlgebraicFF.m: Java target: Fixed
bug in exitPlusOp(), removed box-related garbage.
2017-09-09 Robert Jacobson <[email protected]>
* .gitignore, python_target/FoxySheep/FullFormEmitter.py,
python_target/FoxySheep/Lexer.py,
python_target/FoxySheep/LexerPreface.py, python_target/{ =>
FoxySheep}/generated/__init__.py, python_target/Makefile,
python_target/example.py,
unit_tests/ParseExpressions/NumberLiterals.m,
unit_tests/ParseExpressions/Oddities.m: Reorganized Python target
files.
2017-08-11 Robert Jacobson <[email protected]>
* README.md: Minor edits.
2017-08-10 Robert Jacobson <[email protected]>
* README.md: Clarified operator-precedance parsers.
2017-04-14 Robert Jacobson <[email protected]>
* Expression.txt, unit_tests/FullForm Function Definition.txt,
unit_tests/Oddities.txt: .txt -> .md
2017-04-14 Robert Jacobson <[email protected]>
* README.md, python_target/Expression.txt,
python_target/example.py,
unit_tests/ParseExpressions/FullFormFunctionDefinition.m,
unit_tests/{Number Literals.txt =>
ParseExpressions/NumberLiterals.m},
unit_tests/ParseExpressions/Oddities.m: Expanded documentation.
2017-04-04 Robert Jacobson <[email protected]>
* : commit 958e68bd0fed3f21fc94c5772802b8321b013892 Author: Robert
Jacobson <[email protected]> Date: Tue Apr 4 22:07:00 2017
-0400
2017-04-04 Robert Jacobson <[email protected]>
* .gitignore, CONTRIBUTING.md, README.md, {unit tests =>
unit_tests}/FullForm Function Definition.txt, {unit tests =>
unit_tests}/Number Literals.txt, unit_tests/Oddities.txt:
Significant copy editing of markdown content.
2017-04-04 Robert Jacobson <[email protected]>
* .gitignore: Ignore antlr generated files.
2017-04-04 Robert Jacobson <[email protected]>
* .gitignore, {java target => java_target}/src/FoxySheep.java,
{java target => java_target}/src/FullFormEmitter.java, {java target
=> java_target}/src/Lexer.java, {java target =>
java_target}/src/PostParser.java, python target/Makefile, {python
target => python_target}/Expression.txt, {python target =>
python_target}/FoxySheep/FullFormEmitter.py, {python target =>
python_target}/FoxySheep/Lexer.py, {python target =>
python_target}/FoxySheep/LexerPreface.py, {python target =>
python_target}/FoxySheep/__init__.py, python_target/Makefile,
{python target => python_target}/README.md, {python target =>
python_target}/example.py, python_target/generated/__init__.py,
{python target => python_target}/lexermembers.py: Refactored Python
build system, added .gitignore, removed spaces in directory names.
2017-04-04 Robert Jacobson <[email protected]>
* python target/Expression.txt, python
target/FoxySheep/LexerPreface.py, python target/Makefile, python
target/README.md, python target/{FoxySheep.py => example.py}:
Partial refactor of prefix to the lever class.
2017-04-04 Robert Jacobson <[email protected]>
* Expression.txt, FullForm.g4, FullFormLexerRules.g4, README.md,
unit tests/FullForm Function Definition.txt, unit tests/Number
Literals.txt: Initial commit of FullForm parser/lexer.
2017-03-29 Robert Jacobson <[email protected]>
* CONTRIBUTING.md, README.md: Fixed headings/subheadings in markdown
that something removed somehow.
2017-03-05 Robert Jacobson <[email protected]>
* FoxySheep.g4, python target/Makefile: Improved base ten number
literal lexer.
2015-04-10 Robert Jacobson <[email protected]>
* python target/FoxySheep/FullFormEmitter.py, python
target/FoxySheep/Lexer.py: Updated the python target to account for
improved number literal parsing.
2015-04-10 Robert Jacobson <[email protected]>
* CONTRIBUTING.md, FoxySheep.g4, FoxySheepLexerRules.g4, java
target/src/FoxySheep.java, java target/src/FullFormEmitter.java,
java target/src/Lexer.java: Significantly improved the parsing of
number input forms.
2015-04-04 Robert Jacobson <[email protected]>
* FoxySheep.g4, java target/src/FullFormEmitter.java, java
target/src/Lexer.java, python target/FoxySheep/FullFormEmitter.py,
python target/FoxySheep/Lexer.py: FullForm emitter now handles
patterns. Also fixed a bug related to parsing patterns.
2015-04-04 Robert Jacobson <[email protected]>
* CONTRIBUTING.md, README.md: Updated to reflect python target.
2015-04-04 Robert Jacobson <[email protected]>
* java target/FoxySheep.g4 => FoxySheep.g4, java
target/FoxySheepLexerRules.g4 => FoxySheepLexerRules.g4, java
target/src/Lexer.java, python target/FoxySheep.g4, python
target/FoxySheep/Lexer.py, python target/FoxySheepLexerRules.g4,
python target/Makefile: Unified the target-language specific
grammars. There is now only one set of *.g4's that is used for both
python and java.
2015-04-03 Robert Jacobson <[email protected]>
* java target/FoxySheep.g4, java target/FoxySheepLexerRules.g4,
java target/src/FullFormEmitter.java, python target/Expression.txt,
python target/FoxySheep.g4, python
target/FoxySheep/FullFormEmitter.py, python
target/FoxySheepLexerRules.g4: FullForm emitter now handles Slot[]
and Out[] expressions.
2015-04-02 Robert Jacobson <[email protected]>
* README.md, java target/FoxySheep.g4, java
target/FoxySheepLexerRules.g4, java
target/src/FullFormEmitter.java, python target/Expression.txt,
python target/FoxySheep.g4, python target/FoxySheep.py, python
target/FoxySheep/FullFormEmitter.py, python
target/FoxySheep/__init__.py, python target/FoxySheepLexerRules.g4,
python target/Makefile, python target/lexermembers.py: Started work
on python Full Form emitter, fixed lots of minor bugs in the java
target along the way.
2015-03-31 Robert Jacobson <[email protected]>
* FoxySheep.g4 => java target/FoxySheep.g4, FoxySheepLexerRules.g4
=> java target/FoxySheepLexerRules.g4, {src => java
target/src}/FoxySheep.java, {src => java
target/src}/FullFormEmitter.java, {src => java
target/src}/PostParser.java: Reorganized directory structure in
preparation for python target.
2015-03-31 Robert Jacobson <[email protected]>
* CONTRIBUTING.md, FoxySheep.g4, FoxySheepLexerRules.g4, README.md,
src/FoxySheep.java, src/FullFormEmitter.java: FoxySheep now treats
newlines the same way Mathematica does.
2015-03-30 Robert Jacobson <[email protected]>
* FoxySheep.g4, FoxySheepLexerRules.g4, README.md,
src/FullFormEmitter.java: Added bracketing expressions AngleBracket,
Floor, Ceiling, BracketingBar, and DoubleBracketingBar.
2015-03-30 Robert Jacobson <[email protected]>
* CONTRIBUTING.md: Corrected a minor error in the "Mathematica code
snippets" section.
2015-03-29 Robert Jacobson <[email protected]>
* CONTRIBUTING.md, FoxySheep.g4, FoxySheepLexerRules.g4,
src/FoxySheep.java, src/FullFormEmitter.java, src/PostParser.java:
Now correctly parses Span[] expressions.
2015-03-21 Robert Jacobson <[email protected]>
* README.md: Removed CSS from Markdown.
2015-03-21 Robert Jacobson <[email protected]>
* : commit 083249ef360371c3308c0be0049e8a691f9aca96 Author: Robert
Jacobson <[email protected]> Date: Sat Mar 21 21:55:44 2015
-0400
2015-03-21 Robert Jacobson <[email protected]>
* README.md: Added a table of planned features and the status of
each.
2015-03-21 Robert Jacobson <[email protected]>
* FoxySheep.g4, FoxySheepLexerRules.g4, README.md,
src/FullFormEmitter.java, src/PostParser.java: Added support for
exotic whitespace. Simplified implicit multiplication.
2015-03-13 Robert Jacobson <[email protected]>
* src/FullFormEmitter.java, src/PostParser.java: PostParser and
FullForm emitter now correctly handle compound expressions.
2015-03-13 Robert Jacobson <[email protected]>
* FoxySheep.g4, FoxySheepLexerRules.g4, src/FullFormEmitter.java,
src/PostParser.java: The FullForm emitter now handles inequalities
correctly.
2015-03-12 Robert Jacobson <[email protected]>
* CONTRIBUTING.md, Expression.txt, README.md,
src/FullFormEmitter.java, src/PostParser.java: Added PostParser that
rewrites the parse tree to flatten some operators. Adjusted
FullFormEmitter accordingly.
2015-03-09 Robert Jacobson <[email protected]>
* README.md: Updated README.md to reflect existence of FullForm
emitter.
2015-03-09 Robert Jacobson <[email protected]>
* CONTRIBUTING.md, FoxySheep.g4, FoxySheepLexerRules.g4,
src/FullFormEmitter.java: Fixed implicit multiplication again. We
now use a different method to disambiguate unary/binary plus/minus.
2015-03-08 Robert Jacobson <[email protected]>
* CONTRIBUTING.md, FoxySheep.g4, FoxySheepLexerRules.g4, README.md,
src/FullFormEmitter.java: Added a first draft of a FullForm emitter.
2015-02-28 Robert Jacobson <[email protected]>
* FoxySheep.g4, FoxySheepLexerRules.g4, README.md: Added many rules
having no built-in meaning.
2015-02-22 Robert Jacobson <[email protected]>
* LICENSE.txt: Typo.
2015-02-22 Robert Jacobson <[email protected]>
* Initial commit.