Commit graph

  • 2ce9882cad Moved name labels to the statement production. arookas 2015-12-28 20:19:12 -05:00
  • 649e01b7c5 Fixed: removed [name_label] from if_statement. arookas 2015-12-28 20:18:43 -05:00
  • 75be2d41c1 Added a name-label stack. arookas 2015-12-28 20:16:12 -05:00
  • a7da66f9a9 Added a parameterless overload to Push. arookas 2015-12-28 20:15:12 -05:00
  • 814282fa0d Fixed: prevent recursive const definitions and assert for actual constancy. arookas 2015-12-28 14:31:51 -05:00
  • 54bd3618e3 Added expression analysis. arookas 2015-12-28 14:22:54 -05:00
  • 6be1779781 Added an error for constant expressions. arookas 2015-12-28 14:20:44 -05:00
  • 5f3c86669b Changed break/continue error messages. arookas 2015-12-28 14:19:14 -05:00
  • 7c9aa8fe89 Cleanup. arookas 2015-12-28 14:17:09 -05:00
  • 6997b75403 Renamed AnalyzeExpression. arookas 2015-12-28 13:15:13 -05:00
  • bd7485924a Reformatting. arookas 2015-12-28 12:34:19 -05:00
  • af3950c65e Fixed: missing commas to option table. arookas 2015-12-28 12:33:42 -05:00
  • 41f69f76bb Fixed: incorrect define name for variable packing. arookas 2015-12-28 10:36:31 -05:00
  • 2f9b251fd8 Cleanup. arookas 2015-12-28 03:37:10 -05:00
  • f5394f56d0 Cleanup. arookas 2015-12-28 03:13:30 -05:00
  • aa61439095 Renamed sunVariableAssignment. arookas 2015-12-28 02:50:06 -05:00
  • af2255fbe5 Renamed sunConstDefinition. arookas 2015-12-28 02:49:34 -05:00
  • d52ef38a89 Fixed: updated variable count in header. arookas 2015-12-28 02:48:37 -05:00
  • 500a784ab0 Added variable-allocation option. arookas 2015-12-28 02:48:13 -05:00
  • 1b514eecff Made variable-packing optional. arookas 2015-12-28 02:47:49 -05:00
  • 63740ea381 Fixed: hierarchy treated variable assignments as definitions in local counting. arookas 2015-12-28 02:44:43 -05:00
  • 72387d95eb Updated the assignment-operator compilation code. arookas 2015-12-28 02:40:42 -05:00
  • de28ee84f9 Refactored declaration code. arookas 2015-12-28 01:22:54 -05:00
  • fd21da0982 Fixed: don't count constants when calculating global/local counts. arookas 2015-12-28 01:22:26 -05:00
  • d1d1a2a4a0 Added script- and function- roots. arookas 2015-12-28 01:09:43 -05:00
  • 372c622b84 Added storable and constant counts. arookas 2015-12-28 00:59:26 -05:00
  • b387609a56 Cleanup. arookas 2015-12-28 00:57:43 -05:00
  • 3fd8c28230 Cleanup. arookas 2015-12-28 00:50:52 -05:00
  • 4d7898f723 Changed brace style. arookas 2015-12-28 00:48:47 -05:00
  • 237c6f746f Refactored variable- and constant- resolution. arookas 2015-12-27 23:41:37 -05:00
  • 61e0b220b4 Removed WriteSymbolTable and WriteStringTable. arookas 2015-12-27 23:10:11 -05:00
  • 80c4c94b28 Cleanup. arookas 2015-12-27 22:58:15 -05:00
  • 0794267ff0 Added DeclareConstant. arookas 2015-12-27 22:57:06 -05:00
  • c8056ac960 Cleanup. arookas 2015-12-27 22:54:18 -05:00
  • 4d947f5b6f Cleanup. arookas 2015-12-27 22:51:42 -05:00
  • 402459d997 Removed DeclareParameter. arookas 2015-12-27 22:48:44 -05:00
  • e9ee07f15c Removed unusedd sunConstInfo class. arookas 2015-12-27 22:48:17 -05:00
  • 0840a33f9b Complete rewrite of the symbol resolution API. arookas 2015-12-27 22:39:55 -05:00
  • 664d1e227e Added constant-assignment exception. arookas 2015-12-27 21:56:52 -05:00
  • eb636f2674 Added sanity check. arookas 2015-12-27 21:05:38 -05:00
  • 7e6c43d91e Token class cleanup. arookas 2015-12-27 21:05:25 -05:00
  • af2a00f225 Added open/close sanity checks. arookas 2015-12-27 21:04:29 -05:00
  • a5ec72e1f9 Member field naming convention. arookas 2015-12-27 21:03:38 -05:00
  • 063a092730 Fixed: don't redeclare the builtin. arookas 2015-12-27 21:00:21 -05:00
  • 8f9e8b75f5 Revert "Add script-scope variables to the symbol table." arookas 2015-12-23 20:38:47 -05:00
  • ee5cff3900 Add script-scope variables to the symbol table. arookas 2015-12-23 20:30:07 -05:00
  • 102f623cd1 Made ResolveVariableOrConstant less hacky. arookas 2015-12-23 20:28:03 -05:00
  • c4532d85e7 Fixed: clear the tables and stacks from the previous operation. arookas 2015-12-23 20:22:37 -05:00
  • c4fc1f9f4f Added a clear function. arookas 2015-12-23 20:21:58 -05:00
  • 0ab5431c5f Made variable symbols write a custom name. arookas 2015-12-23 20:20:13 -05:00
  • 684a8a3197 Made symbols write their table entries themselves. arookas 2015-12-23 20:17:16 -05:00
  • ac51f19b85 Fixed: correctly calculate symbol-name lengths. arookas 2015-12-23 20:08:54 -05:00
  • 7672bea631 Removed the unused sunFileArgs class. arookas 2015-12-23 20:03:40 -05:00
  • cde799eadd Added an open/close interface to the context class. arookas 2015-12-23 20:03:14 -05:00
  • 44eab8e9e6 Fixed: don't recurse into function bodies when calculating maximum local counts. arookas 2015-12-21 04:57:00 -05:00
  • 694210cd5a Fixed: incorrect variable count in header. arookas 2015-12-21 04:55:00 -05:00
  • 8e4d9acb31 Made CalculateMaxLocalCount a property. arookas 2015-12-21 04:50:17 -05:00
  • 9ace3833cb Renamed symbol table classes. arookas 2015-12-21 04:49:22 -05:00
  • 5accab46db Updated language documentation to reflect recent changes. arookas 2015-12-18 19:53:06 -05:00
  • babd420e6a Fixed: I accidentally a or two arookas 2015-12-18 19:52:38 -05:00
  • d804f7dd66 Moved mkfr compilation to before the function body. arookas 2015-12-18 19:52:23 -05:00
  • 7c7ab8790e Added CalculateMaxLocalCount. arookas 2015-12-18 19:51:23 -05:00
  • 5a3a01ac8b Made compound statements their own AST node type. arookas 2015-12-18 19:50:55 -05:00
  • 73257ed389 Removed support for compound assignment definitions. arookas 2015-12-18 18:57:24 -05:00
  • a7e10679d4 Added PushAddress (SPC command 0x3). arookas 2015-12-14 14:47:19 -05:00
  • c7853af3cf Added nop (SPC command 0x5). arookas 2015-12-14 14:47:04 -05:00
  • d7742f392f Fixed: typo. arookas 2015-12-13 22:45:13 -05:00
  • 82443b4015 Fixed: talk's final yield loop is for TALKF_WAIT. arookas 2015-12-13 09:22:42 -05:00
  • e7c2318a4b Made better error messages for sunImportException. arookas 2015-12-13 01:20:26 -05:00
  • 6edee006ad Renamed 'sunScriptException' to 'sunSourceException'. arookas 2015-12-13 00:57:21 -05:00
  • dfde9c2b20 Fixed: account for full-width characters in error-line preview. arookas 2015-12-13 00:55:05 -05:00
  • 6a85f0b8b0 Added JDK requirement notice. arookas 2015-12-12 18:13:27 -05:00
  • cf88da7f50 Added basic compilation information. arookas 2015-12-12 18:04:49 -05:00
  • 7527ba5bc6 Added lib directory to premake config. arookas 2015-12-12 17:49:13 -05:00
  • bed6d56ecc Added premake5 configuration. arookas 2015-12-12 17:41:54 -05:00
  • de7832f048 Added arookas library files. arookas 2015-12-12 17:41:40 -05:00
  • 96174aa074 Moved grammatica-.1.6.dll. arookas 2015-12-12 17:38:44 -05:00
  • e5c8e9a8b7 Moved the ssc API code to its own folder. arookas 2015-12-12 17:00:04 -05:00
  • 8d899d019a Fixed: dispose file even if an error occurs. arookas 2015-12-12 16:52:34 -05:00
  • 2fcab65c22 Added error-line preview to frontend. arookas 2015-12-12 16:51:31 -05:00
  • 85149f931e Renamed frontend folder. arookas 2015-12-12 12:53:31 -05:00
  • 3d2f1fe230 Added some stdlib scripts. arookas 2015-12-12 12:51:32 -05:00
  • 7bdcb485b3 Factored out some of the useless members. arookas 2015-12-12 12:44:39 -05:00
  • b4542b50d9 Fixed: woops, forgot to push this in f506572. arookas 2015-12-12 12:41:40 -05:00
  • f506572894 Fixed: variable indices were incorrect in nested scopes. arookas 2015-12-12 12:40:37 -05:00
  • 84c4326c09 Fixed: data length was calculated incorrectly. arookas 2015-12-12 12:39:57 -05:00
  • a8a67c6b16 Made links to language.md. arookas 2015-12-10 22:07:31 -05:00
  • 59374db502 Added increment/decrement operators. arookas 2015-12-10 21:45:35 -05:00
  • 0b78c1dafe Fixed: dispose the script streams once they exit. arookas 2015-12-10 17:53:00 -05:00
  • 0c973514d9 Merged logic between main- and sub- script import. arookas 2015-12-10 17:51:21 -05:00
  • 85d85695e2 Fixed: check for skip before trying to open file. arookas 2015-12-10 17:18:28 -05:00
  • f0371d345e Added DataCount property to sunCompilerResults. arookas 2015-12-10 17:16:56 -05:00
  • 90fb4fdefa Added new command-line frontend. arookas 2015-12-09 23:14:32 -05:00
  • 1648e27988 Fixed: default import resolver on main script file. arookas 2015-12-09 23:14:10 -05:00
  • 545f6575db Cleaned up usings. arookas 2015-12-09 23:13:29 -05:00
  • 260538a5ad Ugh. So that's where that went arookas 2015-12-09 09:50:22 -05:00
  • fb3c28622e Fixed a missing sentence. arookas 2015-12-09 09:48:53 -05:00
  • 9261498916 Updated readme.md with API usage information. arookas 2015-12-09 09:47:12 -05:00
  • ea57eb41df Moved language information to its own file. arookas 2015-12-09 09:46:06 -05:00
  • e08b2dc888 Added: new import resolver system which allows for custom user import resolving. arookas 2015-12-08 20:11:35 -05:00