Commit graph

6 commits

Author SHA1 Message Date
b2b41d6348 feat: factories can depend on the presence of types
All checks were successful
/ test (pull_request) Successful in 17s
Refactors each TypeDispatcher to have its own separate collection
  of types. Add isnan function which returns a boolean if that type
  is present, otherwise returns the number 1 for true, and 0 for fase.
2025-04-13 01:35:10 -07:00
4b81fbe6e2 feat: add conversions to boolean and make mandatory
Some checks failed
/ test (pull_request) Failing after 16s
2025-04-12 07:46:15 -07:00
5bee93dbb3 refactor: prepare for boolean functions
All checks were successful
/ test (pull_request) Successful in 19s
* Defines a BooleanT type
  * adds options to the Type constructor, so far just to allow conversions
    from other types
  * renames Number type to NumberT
  * records the name of types, and puts the name in the string representation
  * defines a conversion fron BooleanT to NumberT, specified to be automatic
  * stub code for automatic conversions, not yet complete
  * BooleanT not yet added to nanomath

Checked that the new facilities do not disrupt the prior behavior on numbers.
2025-04-10 14:01:45 -07:00
69ef928b6e refactor: Switch to 'map-like object keyed by string and type vector' format
See https://code.studioinfinity.org/glen/nanomath/wiki/Item-Specifications.
  Also stubs out the TypeDispatcher, mocking the merge function, so we
  can see that all of the proper things will be added.

  Ready for initial implementation of the TypeDispatcher.
2025-04-02 11:22:53 -07:00
040ec377a1 feat: add type definition and other function categories for number 2025-03-30 20:00:07 -07:00
183a894868 feat: add arithmetic functions for number 2025-03-29 17:12:35 -07:00