Closed adi-lb-phoenix closed 4 months ago
Looks good to me. Tests are passing too.
Edit the PR description with more details on what this PR does.
Use black to format code.
Maintain commit discipline from next time. This time, I am gonna let it pass.
Link to the issue . https://github.com/chsasank/llama.lisp/issues/55 We have the instruction
(set a 10)
,(add a b)
,(fmul a b)
. But the instruction declare is defined as(declare (a int))
. Why do we require an additional()
afterdeclare
. It does not add any features and is counter intuitive. Instead I propose a change in syntax which is intuitive and simple(declare a int)
. So in the directoryllama.lisp/src/backend/tests/c-lisp
I have made changes to the syntax of all the declare statement from(declare (a b))
to(declare a b)
. In the file src/backend/c-lisp.py, I have made changes to how the declare statement is interpreted.