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

repl: parenthesised banged expressions are not evaluted #213

Open
stassa opened this issue Dec 9, 2024 · 1 comment
Open

repl: parenthesised banged expressions are not evaluted #213

stassa opened this issue Dec 9, 2024 · 1 comment

Comments

@stassa
Copy link
Collaborator

stassa commented Dec 9, 2024

At the mettalog repl, when typing a "banged" s-expression between parentheses the s-expression should be evaluated as soon as the parentheses close. This is not the case currently, for example:

% repl started from Prolog shell in metta-wam/prolog/metta_lang with:
% swipl metta_interp.pl --prolog

2 ?- repl.
metta+>(
metta+>!(
metta+>+ 1 1
metta+>)
metta+>)
metta+>
metta+>
metta+>

After the outer ')' is entered the repl should evaluate the !(+ 1 1) but instead it hangs.

@TeamSPoon
Copy link
Collaborator

not to be too weird i almost think it would be nice if it acted like you had jsut entered

metta+> (2)

in this case

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

2 participants