Commit Graph

184 Commits

Author SHA1 Message Date
Jon Rafkind
5aa6b0b06e [honu] dont parse the output of syntax too early. wrap some core racket forms with %racket 2011-11-09 11:17:40 -07:00
Jon Rafkind
b25406db4c [honu] re-attach the output of macros to the input stream. wrap racket expressions so they dont get reparsed 2011-11-09 11:17:40 -07:00
Jon Rafkind
dccdcb0550 [honu] wrap expressions with a semicolon at the end of them in (%semicolon ...) 2011-10-23 14:06:06 -06:00
Jon Rafkind
b055ce9fe0 [honu] wrap blocks inside a definition context (with let) 2011-10-23 13:26:28 -06:00
Jon Rafkind
34689f1711 [honu] checkpoint for docs 2011-09-20 18:05:27 -06:00
Jon Rafkind
b4a74fc12d [honu] return eof at the repl if an eof-object is read 2011-09-15 17:21:24 -06:00
Jon Rafkind
808c2bdf27 [honu] read and parse a line at the repl 2011-09-15 16:01:54 -06:00
Jon Rafkind
219516b321 [honu] use an empty "begin" if nothing was parsed 2011-09-15 16:01:54 -06:00
Jon Rafkind
0b4e630b8c [honu] return currently parsed form if a macro is seen 2011-09-15 16:01:54 -06:00
Jon Rafkind
18b18aaded [honu] add string comparison. add test.xml file for linq example 2011-09-15 16:01:54 -06:00
Jon Rafkind
aaed60493a [honu] recognize linq literals 2011-09-15 16:01:53 -06:00
Jon Rafkind
501efef8a1 [honu] dont produce an extra void expression in a block. add a for form to iterate over a list. add an example of linq with xml 2011-09-13 12:15:47 -06:00
Jon Rafkind
1650294a83 [honu] add simple class form. share the function parsing syntax class 2011-09-13 12:15:47 -06:00
Jon Rafkind
062a20f7e1 [honu] function application respects precedence so that dot can bind higher 2011-09-13 12:15:47 -06:00
Jon Rafkind
6bf5d43c37 [honu] expand honu's #%top-interaction to racket's #%top-interaction 2011-09-06 17:33:13 -06:00
Jon Rafkind
d53332c1f7 [honu] remove debugging output 2011-09-06 17:33:13 -06:00
Jon Rafkind
ffc5387ac3 [honu] configure honu runtime to use the honu syntax reader. this allows honu to be used at the repl 2011-09-06 17:33:12 -06:00
Eli Barzilay
6ebf3ab32d Revert "Abolish "typed-scheme"."
This reverts commit 49a89da818.

(Will be redone later today.)
2011-09-04 10:27:58 -04:00
Eli Barzilay
49a89da818 Abolish "typed-scheme". 2011-09-04 08:46:03 -04:00
Jon Rafkind
5f0a221a03 [honu] allow already parsed expression to pass through 2011-08-30 21:11:11 -06:00
Jon Rafkind
6af36bc25d [honu] treat #\return like #\newline 2011-08-30 17:19:17 -06:00
Jon Rafkind
d88b75a9b7 [honu] macros can be defined with honu syntax 2011-08-30 17:19:17 -06:00
Jon Rafkind
6c75b60d1b [honu] add assignment operator 2011-08-30 17:19:17 -06:00
Jon Rafkind
6b766cd395 [honu] add list comprehensions 2011-08-19 17:12:14 -06:00
Jon Rafkind
816b1747e9 [honu] fix if 2011-08-19 17:12:13 -06:00
Jon Rafkind
c6e35ff665 [honu] move test file. minor cleanups to the parsing code 2011-08-19 17:12:13 -06:00
Jon Rafkind
60aabdc8c5 [honu] don't stop parsing the current expression after invoking a macro.
add a file to help test honu.
2011-08-19 17:12:13 -06:00
Jon Rafkind
07715da5e9 [honu] dont remove syntaxes that end expressions from the stream so macros can consume them. add a simple cond macro 2011-08-17 13:47:58 -06:00
Jon Rafkind
85110e177b [honu] handle unary operators. add some common functions and binary operators 2011-08-17 13:47:58 -06:00
Jon Rafkind
0bac61f538 [honu] add flow operator which composes functions from right to left 2011-08-12 15:16:39 -06:00
Jon Rafkind
d4763da563 [honu] add structs and use . to lookup the field names in a struct instance 2011-08-12 15:16:39 -06:00
Jon Rafkind
5157a333bb [honu] use brackets to do list lookup instead of using dot 2011-08-12 15:16:39 -06:00
Jon Rafkind
17f1ac53be [honu] add dot as an operator. parse parenthesized expressions 2011-08-10 17:33:43 -06:00
Jon Rafkind
c8695ddf2e [honu] set associativty for operators 2011-08-10 17:33:43 -06:00
Jon Rafkind
2f2e1e6a03 [honu] add :: as the infix cons operator 2011-08-09 16:25:28 -06:00
Jon Rafkind
0871117538 [honu] add [] as a list form 2011-08-09 16:25:28 -06:00
Jon Rafkind
ab0a21db99 [honu] add quote and quasiquote 2011-08-09 16:25:27 -06:00
Jon Rafkind
4538335b1c [honu] return a void expression if there is no current expression waiting to be processed 2011-08-09 16:25:27 -06:00
Jon Rafkind
3bcf99b8f6 [honu] parse brace-enclosed code as an expression 2011-08-09 11:57:52 -06:00
Jon Rafkind
b823df23a7 [honu] handle empty files 2011-08-09 11:57:52 -06:00
Jon Rafkind
182cded2a3 [honu] return the last expression if two atomic expressions occur in sequence. add a simple for loop macro 2011-08-09 11:57:52 -06:00
Jon Rafkind
4324a1a33d [honu] add colored lexer so drracket can color honu syntax appropriately 2011-08-03 14:37:26 -06:00
Jon Rafkind
adecdd5603 [honu] return a parse error if the lexer couldnt find any other matching regex 2011-08-03 14:37:26 -06:00
Jon Rafkind
7f3e434cb5 [honu] allow nested block comments 2011-07-29 18:42:55 -06:00
Jon Rafkind
cd5d0ee9a3 [honu] fix escapes in string literals 2011-07-29 16:59:48 -06:00
Jon Rafkind
7532515110 [honu] use regular expressions to lex comments 2011-07-29 16:59:48 -06:00
Jon Rafkind
cd62f1983f show line/column information for parsing errors 2011-07-29 16:59:48 -06:00
Jon Rafkind
1e4c9b4ec3 use new reader for #lang honu 2011-07-26 17:41:07 -06:00
Jon Rafkind
ae6a69b8eb make syntax objects 2011-07-26 17:41:07 -06:00
Jon Rafkind
a39cd8773a refactor 2011-07-26 17:41:07 -06:00
Jon Rafkind
df9b8db14a parse sub-trees 2011-07-26 17:41:06 -06:00
Jon Rafkind
1f9b9b4c51 parse tokens into a tree 2011-07-26 17:41:06 -06:00
Jon Rafkind
1978002312 handle end of line comments 2011-07-26 12:31:45 -04:00
Jon Rafkind
f941e56f71 lex identifiers and delimiters 2011-07-26 12:31:45 -04:00
Jon Rafkind
4e8e18463b add lexer for honu 2011-07-26 12:31:44 -04:00
Jon Rafkind
23e907aa5c add printf. recognize strings as atoms 2011-07-22 14:43:45 -04:00
Jon Rafkind
d4ea3b5d79 parse multiple call arguments 2011-07-22 14:43:45 -04:00
Jon Rafkind
1b914ead61 add optional val before functions and arguments 2011-07-20 19:22:30 -06:00
Jon Rafkind
292512221e function == lambda. add new syntax for defining functions 2011-07-20 19:22:30 -06:00
Jon Rafkind
a7768a13a3 use #%module-begin for honu modules so top level expressions get printed
macros return whether they terminate parsing
2011-07-19 11:00:32 -06:00
Jon Rafkind
3a1dde7f14 parse arguments. provide basic math operations 2011-07-18 11:28:34 -06:00
Jon Rafkind
3736571ad0 fix sequences 2011-07-14 16:54:26 -06:00
Jon Rafkind
a29d64b44a enable #lang honu 2011-07-14 16:54:26 -06:00
Jon Rafkind
57a759c383 fix parsing for operators 2011-07-14 16:54:26 -06:00
Jon Rafkind
3e96a1e66e parse operators 2011-07-13 16:09:22 -06:00
Jon Rafkind
acb3bce1e7 add function as a macro 2011-07-13 16:09:21 -06:00
Jon Rafkind
2737351c4a start new honu implementation 2011-07-12 10:37:23 -06:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Vincent St-Amour
fcf766c905 Prune dead code from Honu.
Approved by Jon Rafkind.
2011-05-24 10:57:31 -04:00
David Van Horn
c9519fd113 Fixed various spelling errors. 2011-02-03 17:42:33 -05:00
Jon Rafkind
b8ad3ad1cb use racket. add list-match utility 2010-10-27 12:07:36 -06:00
Jon Rafkind
b406e74a8e remove old parser implementation. disable honu expansion and disable
debugging output
2010-10-22 14:33:22 -06:00
Jon Rafkind
a1e26dd01b try to fix infix macros 2010-10-22 10:48:12 -06:00
Jon Rafkind
1b356476a4 change printf to debug. add infix macro parser 2010-10-22 10:48:11 -06:00
Jon Rafkind
c45aba592d allow comma in templates 2010-10-22 10:48:11 -06:00
Jon Rafkind
86e7b98d65 fix condition. patterns can take literals 2010-10-22 10:48:11 -06:00
Jon Rafkind
29ed62021c convert syntax back to honu form 2010-10-22 10:48:11 -06:00
Jon Rafkind
eeaf6b4981 fix with-syntax 2010-10-22 10:48:10 -06:00
Jon Rafkind
03562eb8e3 fix if. add check_expect. add some comparison operators 2010-10-22 10:48:10 -06:00
Jon Rafkind
3d26928a3c parse blocks 2010-10-22 10:48:09 -06:00
Jon Rafkind
00094ba4e3 make print a macro 2010-10-22 10:48:09 -06:00
Jon Rafkind
3d6de914b4 add print - display + newline 2010-10-22 10:48:09 -06:00
Jon Rafkind
32227e391d move rest of honu files. point core at local private files 2010-10-22 10:48:08 -06:00
Jon Rafkind
b185147a45 separate honu into core and user-level modules 2010-10-22 10:48:07 -06:00