Skip to content

Broken - #4

Merged
NSoiffer merged 7 commits into
mainfrom
broken
Sep 30, 2021
Merged

Broken#4
NSoiffer merged 7 commits into
mainfrom
broken

Conversation

@NSoiffer

Copy link
Copy Markdown
Collaborator

Redo of ContextStack. Now more efficient and more powerful in that variables whose values are nodes work.

Added a superstructure to that points to the context stack and speech rules. This allows the speech rules to be immutable during speech generation. Trying to do this caused the Rust memory checker to complain in several places. It took awhile, but I found the solution was to introduce a separate lifetime for the reference to the SpeechRulesWithContext from the lifetime of the ContextStack. Thus there are now three lifetimes that are tracked.

Also fixed a number of bugs.

…ith lifetimes and mutable/immutable conflicts.

Saving so I can try something else.
This works for the tests in rule 145, not sure it will work for "divides" or other infix vertical bar rules.
Remove some DEBUG() helpers
SpeechRules can now be borrowed immutably, so cleaned that up
Changed "comma" to use "," which is cleaned up later.
Passes all current tests in Rules.
@NSoiffer
NSoiffer merged commit 3572443 into main Sep 30, 2021
@NSoiffer
NSoiffer deleted the broken branch September 30, 2021 00:13
NSoiffer pushed a commit that referenced this pull request Jun 23, 2026
* first updates

unicode, general and part of default

* Test update

* Updated geometry.yaml

#2

* Updated linear-algebra and calculus

#3 #4

* ClearSpeak_rules.yaml updated

* Update overview.yaml

Close #10

* Update navigate.yaml

* Update SimpleSpeak_Rules.yaml

* Update definitions.yaml

Closes #14

* Updated SimpleSpeakl and ClearSpeak

Finished the update of SimpleSpeak and corrected a rule in both SimpleSpeak and ClearSpeak that made mixed numbers be spoken incorrectly.

* Bug fix in SimpleSpeak and ClearSpeak

Fixed a bug concerning common fractions used in mixed numbers.

* Fixed a bug in general.yaml

Fixed a bug concerning how one is spoken in combination with a unit.

* Unicode-full & navigate

Updated unicode-full and navigate, plus fixed a couple of typos in the english unicode-full.

* Fixed a corrupt file

There was some problem with general.yaml, which should now be fixed.

* Update default.yaml

* Update general.yaml

Hopefully this fix will solve a lot of the failed tests. #15

* Updated functions.rs

Both for ClearSpeak and SimpleSpeak

* Fixed a multiline test fail

Both ClearSpeak_rules.yaml and multiline.rs needed an update.

* Fixed linear-algebra fails

Restored language-specific rules for homomorphism and kernel.

* Tests updated

Updated tests to conform to slight changes in speaking (pausing and 1/en)

* Fixed some small errors

* Bug fix

* Update navigate.yaml

* Fixed a language-dependent issue

* Added audit-ignore to reintroduced rules

* Fixed laplacian

* Minor typo fix

Added missing "bråk" to "slut bråk" announcement

---------

Co-authored-by: AndersEkl <anders.eklund@spsm.se>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant