Skip to content

docs: describe Evaluate and the available types in README - #42

Merged
rameel merged 1 commit into
mainfrom
docs/readme-evaluate-and-types
Nov 19, 2026
Merged

rameel merged 1 commit into
mainfrom
docs/readme-evaluate-and-types

Conversation

@rameel

@rameel rameel commented Nov 19, 2026

Copy link
Copy Markdown
Owner

README showed only Parse and did not mention Evaluate, which parses, compiles, and runs an expression in one call. It also did not say which types an expression can use by default or how to make other types available. This PR adds sections for both: the predefined types of DefaultBinder, and RegisterType with importAsStatic.

It also explains how Parse reports errors, adds the using directives to the Usage example and the null-forgiving operator to both examples, so they compile without nullable warnings, and moves the note on case-insensitive names from the ContextAwareBinder section to Usage, since DefaultBinder resolves names the same way.

The list of types matches the dictionary in DefaultBinder, except for Int128 and UInt128: they are added under #if NET7_0_OR_GREATER, but the package targets only net6.0, so they are not available. README also does not promise that the members of predefined types such as Math can be used without the type name: Math and MathF are both imported, so pi and abs(-1.5f) are ambiguous. Both issues are left for separate fixes.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

README showed only Parse and did not mention Evaluate, which parses,
compiles, and runs an expression in one call. It also did not say
which types an expression can use by default or how to make other
types available. Add sections for both: the predefined types of
DefaultBinder, and RegisterType with importAsStatic.

It also explains how Parse reports errors, adds the using directives
to the Usage example and the null-forgiving operator to both examples,
so they compile without nullable warnings, and moves the note on
case-insensitive names from the ContextAwareBinder section to Usage,
since DefaultBinder resolves names the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rameel
rameel merged commit 88773c9 into main Nov 19, 2026
1 check passed
@rameel
rameel deleted the docs/readme-evaluate-and-types branch November 19, 2026 12:19
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