Skip to content

Conversation

@CodingPupper3033
Copy link
Contributor

Able to serialize an expression to the PALM prefix notation

};

// Define PALM tokens
constexpr inline std::string_view PALM_OPEN_PARENS = "(";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if you like refactor all of these to the ones above? (In FromPalm)

@CodingPupper3033 CodingPupper3033 force-pushed the feature-palm-serializer branch 2 times, most recently from 99a8452 to 46293d7 Compare November 8, 2025 19:57
@CodingPupper3033 CodingPupper3033 marked this pull request as draft November 21, 2025 21:01
@CodingPupper3033 CodingPupper3033 force-pushed the feature-palm-serializer branch 3 times, most recently from 58a2bcd to a64b226 Compare November 24, 2025 19:31
@CodingPupper3033
Copy link
Contributor Author

The Serializer (and tests) should be refactored now.

PS: Oasis-Jetbrains should be updated to accept Infinity -Infinity and NaN

CodingPupper3033 and others added 22 commits November 24, 2025 21:06
…plement serialization for Log, Negate, Derivative, Integral, and Magnitude
…odify PALMHelper.hpp to define TokenBimap for expression type mapping
… by type (operators and delimiters). Also refactored the helper functions to use the new feature. Also split the separators between the start/end parenthesis and between operands into two separate delimiters (so in the future we could do something like (+ 5 2) instead of needing to be ( + 5 2 )
….hpp

Created PALMTokenizer to tokenize the input string. (By whitespace or punctuators)
…e (LeafExpression, BinaryExpression, UnaryExpression).
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