Commit Graph

8 Commits

Author SHA1 Message Date
b220cf70e0 Enhanced super functionality with comprehensive class inheritance tests
- Added super support for class inheritance (not just extensions)
- Added constructor super calls (super.init())
- Added method super calls (super.methodName())
- Added deep inheritance chain testing (3+ levels)
- Added method chaining with super
- Added complex expressions with super
- Added string contexts with super
- Added empty derived class testing
- Expanded test coverage from 22 to 121 lines
- Added 5 comprehensive test categories:
  1. Class inheritance with super
  2. Deep inheritance with super
  3. Super in extensions (preserved original)
  4. Super edge cases
  5. Empty derived classes

All tests pass and are integrated into main test suite.
2025-08-13 00:29:33 -04:00
6e3379b5b8 Updated tests and testing built in modules 2025-08-12 16:50:54 -04:00
7f7c6e438d Started fleshing out built in modules.
added policy templates for module safety
2025-08-12 03:26:50 -04:00
8cdccae214 Built in modules, user modules, ability to disable builtin modules 2025-08-12 00:16:36 -04:00
fc63c3e46f Try Catch bug fixing 2025-08-11 20:12:24 -04:00
227586c583 Try Catch 2025-08-11 18:26:41 -04:00
3138f6fb92 Various changes, again. Updated extension. Added classes, super, this, polymorphism.
Runtime: add method dispatch for array/string/dict/number (.len, .push, .pop, .keys, .values, .has, .toInt)
Stdlib: delete global len/push/pop/keys/values/has
Tests/docs/examples: migrate to method style; add tests/test_builtin_methods_style.bob
All tests pass
Breaking: global len/push/pop/keys/values/has removed; use methods instead
Parser/AST: add class/extends/extension/super, field initializers
Runtime: shared methods with this injection; classParents/classTemplates; super resolution; ownerClass/currentClass; extension lookup order
Builtins: method dispatch for array/string/dict/number (.len/.push/.pop/.keys/.values/.has/.toInt); remove global forms
Tests/docs/examples: add/refresh for classes, inheritance, super, polymorphism; migrate to method style; all tests pass
VS Code extension: update grammar/readme/snippets for new features
2025-08-10 22:44:46 -04:00
7a9c0b7ea9 Pre class implementation commit 2025-08-10 16:50:18 -04:00