-
Beta Was this translation helpful? Give feedback.
Answered by
cl4cnam
Apr 15, 2024
Replies: 1 comment
-
For now, FuncSug has two syntaxes:
Distinguish between a primitive and a functionThe pythonic syntax does not allow you to distinguish between a primitive and a function. In the lispish one, it's possible (but not mandatory) to call a function differently from a primitive. The primitives are all the key of gDict_instructions in interpreter.js. Which one to chooseI think the pythonic syntax is more adapted for end-programmers, whereas the lispish one is appropriate for libraries.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cl4cnam
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For now, FuncSug has two syntaxes:
parser.js
(which has been generated fromfuncSug.peggyjs
on https://peggyjs.org/online.html, the parser variable ispeg
)parserPy.js
(which has been generated fromfuncSugPy.peggyjs
on https://peggyjs.org/online.html, the parser variable ispegPy
)Distinguish between a primitive and a function
The pythonic syntax does not allow you to distinguish between a primitive and a function. In the lispish one, it's possible (but not mandatory) to call a function differently from a primitive. The primitives are all the key of gDict_instructions in interpreter.js.
Which…