Commit Graph

1120 Commits

Author SHA1 Message Date
Julia Longtin
0e518a69ec add more examples. 2019-07-15 22:59:55 +01:00
Julia Longtin
fd1ccd17d1 do not try to match spaces before a pattern. 2019-07-15 22:55:48 +01:00
Julia Longtin
c2c5a7428c rewrite patterns with whiteSpace such that they do not try to match whitespace before the patern. 2019-07-15 22:52:23 +01:00
Julia Longtin
cea00ae9e1 add comments to the statement parser tester. 2019-07-15 21:30:36 +01:00
Julia Longtin
1d8559560e switch from genScace to whiteSpace, and some minor speedups. 2019-07-15 21:29:21 +01:00
Julia Longtin
b9ab29a5e7 whoops. actually upload the lexer. 2019-07-15 19:18:40 +01:00
Julia Longtin
4ec2277903 Add a lexer, and use it to parse whitespace before the first statement. 2019-07-15 19:13:11 +01:00
Julia Longtin
79c20d1193 fix a trivial bug. allow for empty programs. 2019-07-14 21:48:57 +01:00
Julia Longtin
21baad7c47 merge E notation, float, and integer into one higher performing parser. 2019-07-14 19:00:55 +01:00
Julia Longtin
5b54ddd788 use padChar to shorten code a bit. 2019-07-14 12:20:27 +01:00
Julia Longtin
03c71e8e35 separate floating E notation from integer E notation in tests, increasing parser coverage. 2019-07-14 11:05:09 +01:00
Julia Longtin
f1df7db64d use option to merge branches of the parser. 2019-07-14 11:04:23 +01:00
Julia Longtin
8f000779a4 do not bother finding the file or reading it if we are not going to interpret it. 2019-07-13 23:29:39 +01:00
Julia Longtin
10fc12cb3d Disable file include/use. 2019-07-13 23:05:22 +01:00
Julia Longtin
445f7d9fb4 add a command line option enabling/disabling file import. 2019-07-13 23:03:08 +01:00
Julia Longtin
15e715ee81 Add an option to disable file include/use, and instead generate a warning. 2019-07-13 23:01:09 +01:00
Julia Longtin
97764a6054 split boolean off into a seperate parser. 2019-07-13 15:36:10 +01:00
Julia Longtin
fe73ca36a2 add tests for E notation. 2019-07-13 14:54:33 +01:00
Julia Longtin
df68cb8295 fix 10e+1 parsing, and optimize parsing e+ by use of optional. 2019-07-13 14:53:34 +01:00
Julia Longtin
5ad66c095c use parsec V3 style of imports instead of parsec v2. 2019-07-13 14:52:52 +01:00
Julia Longtin
282abc4647 add FIXME. 2019-07-12 12:06:32 +01:00
Julia Longtin
69124330a6 use Symbol and VarLookup better, and clean up comments. 2019-07-11 22:39:39 +01:00
Julia Longtin
22be802ed4 be a little more specific. 2019-07-11 22:29:27 +01:00
Julia Longtin
28519cf014 fix english. 2019-07-11 22:29:00 +01:00
Julia Longtin
f60e18aa61 Use explicit forall more effectively, only when we need it. 2019-07-11 22:26:09 +01:00
Julia Longtin
27ed46b273
Merge pull request #229 from colah/implicitsnap
Implicitsnap
2019-07-08 00:43:38 +00:00
Julia Longtin
93c962c620 use intercalate and scadMessages more consistently. 2019-07-08 01:40:16 +01:00
Julia Longtin
c4dd9fa9e7 add clarifying parenthesis. 2019-07-08 01:35:10 +01:00
Julia Longtin
e8d64954bc display errors before program output, and spacing changes. 2019-07-08 00:22:12 +01:00
Julia Longtin
728482c222 make jsTHREE the default. 2019-07-07 23:38:11 +01:00
Julia Longtin
8e18a355cb rewrite the logic in implicitsnap to be more like extopenscad. 2019-07-07 23:27:46 +01:00
Julia Longtin
019a7dc4b4 clarify some comments, and add paranthesis around min, for clarity. 2019-07-07 23:23:36 +01:00
Julia Longtin
8a62c61960 Merge branch 'master' of github.com:/colah/ImplicitCAD 2019-07-07 12:17:20 +01:00
Julia Longtin
914b44139b handle multiple objects in a scad file as a warning, change the standard processing notices, and output warnings and errors onto stderr. 2019-07-07 12:16:41 +01:00
Julia Longtin
6411047651 apply more warnings, from the ghc 8.6 manual. 2019-07-06 16:04:23 +01:00
Julia Longtin
f64e7a4f3b Merge branch 'master' of github.com:colah/ImplicitCAD 2019-07-06 14:41:17 +01:00
Julia Longtin
9915502d03
Merge pull request #228 from lepsa/warning-cleanup
Warning cleanup.
2019-07-06 13:36:03 +00:00
Julia Longtin
f8b20c3a4e Merge branch 'master' of github.com:colah/ImplicitCAD 2019-07-06 14:29:45 +01:00
Julia Longtin
a69f15ac82 more consistant spacing. 2019-07-06 14:29:34 +01:00
Owen Harvey
5512d18678 Warning cleanup.
Dropping -Weverything, and adding a couple of specific warnings, and
enabling -Werror.
2019-07-06 23:29:00 +10:00
Julia Longtin
fd3afb9e60 quiet down an error message, using the message channel instead. 2019-07-04 09:16:49 +01:00
Julia Longtin
e98dd01299 inherit SCADOPTS from the shell environment, so options can be played with. 2019-07-03 09:24:46 +01:00
Julia Longtin
37118d28c1 break openscad compatibility into multiple arguments, and add a rawecho output format. 2019-07-03 09:24:05 +01:00
Julia Longtin
a288b5218b use new quiet option. 2019-07-01 18:08:13 +01:00
Julia Longtin
911d5deec4 cleanup warnings. 2019-07-01 18:08:00 +01:00
Julia Longtin
0f27069817 add quiet option to extopenscad, and change the name of the messagetype used for text. 2019-07-01 17:41:44 +01:00
Julia Longtin
849c26c2b2 add missing dependency. weeder lies sometimes. 2019-06-30 21:28:36 +01:00
Julia Longtin
adcb0a5828 spacing, comment, and variable name changes. also, fix show for ints. 2019-06-30 17:23:33 +01:00
Julia Longtin
ac5ca9699d use Fastℕ for enum, instead of ℝ 2019-06-30 09:18:32 +01:00
Julia Longtin
6ddee54c66 avoid one more type. 2019-06-30 00:27:15 +01:00