Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧩 Refactor lexical parser to accept front matter fields in dice contexts #325

Open
Shyclops opened this issue Aug 8, 2024 · 0 comments

Comments

@Shyclops
Copy link

Shyclops commented Aug 8, 2024

Scope

currently dice role context expects to only see numbers, change the parser so that it can take front matter fields as well

Discovery

Referencing number fields of a different note currently returns Error: Mismatched parenthesis. After the change

Validate

Steps

  1. Make a two notes, one called "Note with metadata" and one called "Note with dice context"
  2. In "Note with metadata" add fields Stat_1 and "Stat 2"
  3. In "Note with dice context" add `dice: 1d20 + ({[[Note with metadata]].Stat_1} + {[[Note with Metadata]]["Stat 2"]})
  4. Verify that dice is rolled and adds the two stats to the roll
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

No branches or pull requests

1 participant