Commit Graph

29 Commits

Author SHA1 Message Date
Stefano Sanfilippo 60136fc4e9 Minor cleanups to lexer. 2014-11-27 21:34:26 +01:00
Stefano Sanfilippo 13ccc9277e Alternate spelling for LTE and GTE operators. 2014-11-27 21:30:29 +01:00
Stefano Sanfilippo 12c5043778 Adding namespace declaration to lexer. 2014-11-27 20:02:15 +01:00
Stefano Sanfilippo 40845c011b Cleanups.
1. move emit() to separate file.
2. move main to .cpp
3. use "namespace" for parser and lexer.
4. remove Type.h
2014-11-27 19:59:48 +01:00
Stefano Sanfilippo 9e12a95612 Renaming ASSERT_BEGIN and ASSERT_END into ASSERT and BANG. 2014-11-25 00:47:51 +01:00
Stefano Sanfilippo 7197bd707a Allow arbitrary expressions to be passed as function params. 2014-11-25 00:39:01 +01:00
Stefano Sanfilippo b5d524c295 Add Types.h to %code require in parser definition. 2014-11-24 23:56:54 +01:00
Stefano Sanfilippo a15da1f544 Best fit for BRANCH_ELSE. 2014-11-24 10:54:25 +01:00
Stefano Sanfilippo b35d565ec6 Add contracted article forms. 2014-11-23 23:46:32 +01:00
Stefano Sanfilippo 32846cccd7 More fluent CASE_END. 2014-11-23 23:22:55 +01:00
Stefano Sanfilippo bc69779b67 Cleaner handling of meta comments. 2014-11-23 23:22:44 +01:00
Stefano Sanfilippo 0f76a9da53 Complete valid tokens in "shift" status. 2014-11-23 23:14:43 +01:00
Stefano Sanfilippo 43fee532b0 Print meta comments to stderr. 2014-11-23 23:14:12 +01:00
Stefano Sanfilippo 403a957b08 Adding metacomments 2014-11-23 22:42:59 +01:00
Stefano Sanfilippo cad818d33b Get rid of DOTS. 2014-11-23 22:33:50 +01:00
Stefano Sanfilippo ae7920d5dd Use comma and dots instead of dot (easy flow). 2014-11-23 22:32:41 +01:00
Stefano Sanfilippo acce9c0c78 Minor fixes. 2014-11-23 22:19:10 +01:00
Stefano Sanfilippo 0de580d0e9 Funnier delimiters for functions. 2014-11-23 22:18:56 +01:00
Stefano Sanfilippo a25e1697cd Alternate spelling for ASSIGN 2014-11-23 22:18:19 +01:00
Stefano Sanfilippo 1147af9eda Handle shift operator at syntactic level. 2014-11-23 22:06:37 +01:00
Stefano Sanfilippo 0a6c350ba1 Stripping stray article in token. 2014-11-23 22:06:11 +01:00
Stefano Sanfilippo 558f5712d6 Removing alias for 2. 2014-11-23 22:05:59 +01:00
Stefano Sanfilippo 95087c6e7e No more newlines (use . DOT as delimiter). 2014-11-23 20:45:44 +01:00
Stefano Sanfilippo d86f72eec3 Text alias for number 2. 2014-11-23 20:44:16 +01:00
Stefano Sanfilippo 298f2b115c Using a phrase instead of dots as CASE_END. 2014-11-23 20:43:57 +01:00
Stefano Sanfilippo 53037798a4 Article is not part of the keyword. 2014-11-23 20:43:42 +01:00
Stefano Sanfilippo e67ece7aab Comments can now be placed also at ending of line. 2014-11-23 20:43:28 +01:00
Stefano Sanfilippo d9f3d6f06a Fix conflicts by introducing a CASE_END token. 2014-11-23 19:24:10 +01:00
Stefano Sanfilippo 65b38e33c2 Initial commit. Grammar has some conflicts, no rules. 2014-11-23 19:04:25 +01:00