Herb-AI / HerbGrammar.jl

Grammars for Herb.jl
https://herb-ai.github.io/
MIT License
0 stars 2 forks source link

Fix isvariable function #21

Closed jaapdejong15 closed 9 months ago

jaapdejong15 commented 1 year ago

The isvariable function doesn't take into account that symbols might have a corresponding definition in the Main or Base module or any other module that a user passes to the SymbolTable when evaluating. Therefore, isvariable should take an optional module and also check whether a symbol is defined in either of these three modules before determining something is a variable.

IssaHanou commented 9 months ago

Solved by #45