Commit graph

91 commits

Author SHA1 Message Date
2bfe3250cf remove Tighten stuff 2024-06-04 21:49:08 +02:00
b7dc5ffdc4 add check for #[main] type 2024-04-14 16:20:40 +02:00
a1d8fd4ab5 %inline 2024-04-12 21:53:54 +02:00
9d60f366cf add #![log] pragma 2024-04-12 21:53:54 +02:00
fca75377a0 MakeName ⇒ MkName for consistency 2024-04-12 21:53:50 +02:00
11b0ab6a25 remove default from FromParser.fromParserPure and Main.step 2024-04-07 03:20:42 +02:00
3b6ae36e4e add logging to core 2024-04-04 19:26:41 +02:00
861bd55f94 add log effects to FromParser 2024-04-04 19:26:41 +02:00
f337625801 remove most noLocs 2024-02-10 10:14:22 +01:00
103f019dbd move NDefinition to Quox.Definition and add an untyped one 2024-02-10 10:14:22 +01:00
aa4ead592a allow "let x : A = e in s" with type annotation 2023-12-21 17:54:31 +01:00
54db7e27ef make #[fail] run in the current namespace 2023-12-21 17:53:46 +01:00
e48f03a61c multiple semi-sep binds in a let 2023-12-04 23:27:59 +01:00
b1699ce022 add let to the core 2023-12-04 22:47:52 +01:00
68d8019f00 add let to frontend syntax 2023-12-04 18:56:45 +01:00
59e7a457a6 let case be the head of an application too 2023-12-04 18:28:57 +01:00
4291afd51b allow fst/snd to take multiple arguments
also succ though that won't be well typed
2023-12-04 18:21:28 +01:00
50984aa1aa refactor #[attribute] stuff 2023-11-05 20:49:02 +01:00
d9cdf1306d fix IsReserved
IsReserved should be true for e.g. "λ" but not "fun", since only the
first can show up in the lexer output
2023-11-05 15:43:20 +01:00
6c8ebfb804 fix some comments 2023-11-05 15:41:21 +01:00
f58fa5218f subscript numbers are no longer special 2023-11-05 15:39:52 +01:00
e211887a34 string/nat lit stuff 2023-11-05 15:38:13 +01:00
3b9a339e5e rename "Tag" highlight to "Constant" 2023-11-05 14:30:40 +01:00
90cdcfe4da add \n and \t escapes to the lexer 2023-11-03 20:07:59 +01:00
0514fff481 represent ℕ constants directly
instead of as huge `succ (succ (succ ⋯))` terms
2023-11-03 18:05:54 +01:00
fa7f82ae5a rename Nat to NAT in AST 2023-11-03 18:05:54 +01:00
e0ed37720f always vsep scheme lets, otherwise they are unreadable 2023-11-03 18:05:54 +01:00
050346e344 add postulate, #[compile-scheme], #[main] 2023-11-03 18:05:54 +01:00
f4a45b6c52 keep the Except effect at the start of the list 2023-11-03 18:05:54 +01:00
83ab871d61 new main 2023-11-03 18:05:54 +01:00
fbb862c88b %default total 2023-11-03 18:05:54 +01:00
b651ed5447 LoadFile does the parsing 2023-11-03 18:05:54 +01:00
52e54dcc3c add PrettyVal stuff for parser AST 2023-11-03 18:05:54 +01:00
69f032584e fix constructor name in comment 2023-11-03 17:56:42 +01:00
f04c4619ef detect reserved words inside names like 'a.λ.b' 2023-09-24 17:36:26 +02:00
d4de74eab6 change it to #[..] since # is also reserved 2023-09-22 18:38:40 +02:00
8395bec4cb check for duplicate cases in enum matches 2023-09-22 18:37:53 +02:00
d4cfbd4045 add @[fail] modifier to declarations
- `@[fail] def foo = ...` succeeds if `foo` has some error.
- `@[fail "scope"] def foo = ...` succeeds if `foo` has some error
  containing the word "scope" somewhere
- `@[fail] namespace foo { }` works too and the error must be anywhere
  in the namespace
2023-09-22 14:03:22 +02:00
80b1b3581a use ST from base 2023-09-19 13:05:01 +02:00
bb8d2464af add fst and snd 2023-09-18 21:53:38 +02:00
e6c06a5c81 pass the subject quantity through equality etc
in preparation for non-linear η laws
2023-09-18 21:53:38 +02:00
f3f74d581a fix Main 2023-08-26 21:07:10 +02:00
a221380d61 more effect stuff, incl. ST 2023-08-25 18:59:54 +02:00
4b6b3853a1 make uses of eff more consistent 2023-08-24 19:55:57 +02:00
932469a91e make quantities optional and default to 1 2023-07-18 23:12:04 +02:00
fa09aaf228 squash warnings 2023-06-23 18:32:05 +02:00
865772d512 remove stale todos 2023-06-11 19:25:32 +02:00
00e79d4264 quote names in Show 2023-05-25 18:34:13 +02:00
3bbf0366c8 make 0 in ★₀ optional 2023-05-21 20:34:05 +02:00
42aa07c9c8 crude but effective stratification 2023-05-21 20:34:05 +02:00