Commit Graph

506 Commits

Author SHA1 Message Date
Adam Sampson
057a3a0a67 Better string literal handling: do away with StringLiteral in favour of arrays of ByteLiteral 2007-04-29 21:31:56 +00:00
Adam Sampson
d2c522bec0 Expression retyping 2007-04-29 17:22:13 +00:00
Adam Sampson
2be9b16cc7 Rebrand from FCO to Tock 2007-04-29 16:20:40 +00:00
Adam Sampson
1932ae534a Intrinsic functions (SQRT and DSQRT) 2007-04-29 16:10:29 +00:00
Adam Sampson
2d88249408 Intrinsic PROCs (ASSERT for now) 2007-04-29 14:46:19 +00:00
Adam Sampson
5de146234f Be a bit smarter about figuring out when conversions are precise 2007-04-29 14:05:28 +00:00
Adam Sampson
47ccd704e4 Remove a FIXME 2007-04-29 00:11:42 +00:00
Adam Sampson
ca0131f2d1 Fix parsing of typed hex literals 2007-04-29 00:10:16 +00:00
Adam Sampson
ce61a7c2f5 Fix string and char literal handling in finishLine 2007-04-29 00:05:44 +00:00
Adam Sampson
a76611c4c2 Add a Makefile target for building cgtests 2007-04-28 23:54:18 +00:00
Adam Sampson
4767dfd2c8 Pull up to both Processes and Structureds, and clean up ParseState.hs 2007-04-27 22:27:48 +00:00
Adam Sampson
2bcdd7cd66 Big AST rework: all spec/rep stuff is now done with Structured 2007-04-27 21:49:34 +00:00
Adam Sampson
5e32facc59 Better reporting of invalid subscripts 2007-04-27 18:39:32 +00:00
Adam Sampson
3c8f79b2e8 Add a testcase for pulling up expressions in IF 2007-04-27 16:18:18 +00:00
Adam Sampson
d976dedfae Don't add new args to the TLP 2007-04-27 13:58:35 +00:00
Adam Sampson
6e4d2e2404 Use -v multiple times to specify verbosity, and only show AST/state if -vvv is given 2007-04-27 13:07:40 +00:00
Adam Sampson
09be48dca3 Split the literal evaluator into a new module, and make type subscripting smarter 2007-04-27 12:59:40 +00:00
Adam Sampson
5a89e1722c Initial RETYPES/RESHAPES support 2007-04-27 03:01:32 +00:00
Adam Sampson
7507bd21dc CHAN OF ANY testcase 2007-04-26 22:54:54 +00:00
Adam Sampson
6e04185502 Fix channel array abbreviations 2007-04-26 22:54:01 +00:00
Adam Sampson
5586446dcb Fix parsing of channel array abbreviations 2007-04-26 22:49:41 +00:00
Adam Sampson
414bd9bfe6 Allow SIZE in constant expressions 2007-04-26 22:41:19 +00:00
Adam Sampson
8554d19d3a Implement (in a very simple way) CHAN OF ANY 2007-04-26 22:26:48 +00:00
Adam Sampson
39bbc1e10e Support (but complain about!) empty versions of SEQ, IF, etc. 2007-04-26 21:56:05 +00:00
Adam Sampson
4d45002a30 Add support for compiler warnings 2007-04-26 21:41:04 +00:00
Adam Sampson
6cdfb98086 Strip leading zeros from decimal literals 2007-04-26 21:24:38 +00:00
Adam Sampson
f0223ec40a Get multidimensional array literals working (by changing their AST representation) 2007-04-26 21:21:35 +00:00
Adam Sampson
a11782ac24 Don't delete intermediate files (so I can look at the C) 2007-04-26 20:23:22 +00:00
Adam Sampson
80bfdcd0a6 Make Dimension take an Int rather than an Expression 2007-04-26 20:21:03 +00:00
Adam Sampson
8a0702dfa3 Add simplifyType (unused for now) 2007-04-26 20:20:44 +00:00
Adam Sampson
6397d9526e Remove debugging code 2007-04-26 20:20:00 +00:00
Adam Sampson
63a39f5a27 More testcases 2007-04-26 16:06:45 +00:00
Adam Sampson
939205670b Rework how constant evaluation is done 2007-04-26 16:05:04 +00:00
Adam Sampson
9e69317d7b Better constant folding 2007-04-26 14:57:48 +00:00
Adam Sampson
a93439dfc7 Implement continuation lines of both kinds 2007-04-26 13:20:43 +00:00
Adam Sampson
f5345f3815 Handle lines consisting of only spaces, and report errors better 2007-04-26 02:46:19 +00:00
Adam Sampson
51c83f4e94 Fix abbreviation parsing 2007-04-26 02:25:37 +00:00
Adam Sampson
5e7c9403cc Rewrite Indentation in a monadic (and somewhat less cryptic) way 2007-04-26 01:56:23 +00:00
Adam Sampson
8c6e4f6aac Show what line indentation errors occur on 2007-04-25 22:32:35 +00:00
Adam Sampson
d20b113a00 Generate AFTER using > and MINUS 2007-04-25 21:24:20 +00:00
Adam Sampson
092e82d80a Use a different name for the object file, to avoid make getting confused 2007-04-25 21:02:05 +00:00
Adam Sampson
07e7da31de Fix free name removal 2007-04-25 20:50:23 +00:00
Adam Sampson
2ab61a790f Array literals aren't "simple" 2007-04-25 20:16:08 +00:00
Adam Sampson
818281542c Make associative ops actually be associative 2007-04-25 19:09:29 +00:00
Adam Sampson
336679f416 Make TRUE/FALSE part of operand rather than expression 2007-04-25 18:18:38 +00:00
Adam Sampson
d20bf1656d Handle tabs in indentation 2007-04-25 18:14:21 +00:00
Adam Sampson
52e1edbcdd Accept (but ignore) INLINE 2007-04-25 18:11:49 +00:00
Adam Sampson
f8fa60d1ed Implement << and >> 2007-04-25 17:48:16 +00:00
Adam Sampson
6d419c92c7 Add a list of bugs in the ordered syntax 2007-04-25 17:47:46 +00:00
Adam Sampson
d265857e34 Handle nested includes properly 2007-04-25 17:25:49 +00:00