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

Big tracking issue for implementing standard functions #1

Closed
sagebind opened this issue Jun 4, 2017 · 0 comments
Closed

Big tracking issue for implementing standard functions #1

sagebind opened this issue Jun 4, 2017 · 0 comments
Assignees

Comments

@sagebind
Copy link
Owner

sagebind commented Jun 4, 2017

For Riptide to be useful at all, a minimal list of builtin functions and constructs must be provided in order to be able to program properly. Below is a list of functions that should be implemented before an alpha release:

  • =: Test equivalence.
  • |: Create a pipeline.
  • and: Logical and.
  • apply: Function call argument unpacking.
  • begin: Execute expressions in sequence.
  • builtin: Explicitly call a builtin.
  • capture: Capture stdout and return it.
  • cd: Change directory.
  • command: Explicitly call a command.
  • cond: Multiple conditional branching.
  • def: Define a global function or variable (binding).
  • let: Define a local, lexically scoped binding.
  • env: Get, set, or list environment variables.
  • exec: Replace current process.
  • exit: Exit program.
  • foreach: Iterate over a list.
  • help: Some sort of help system.
  • if: Conditional branching.
  • list: Create a list.
  • not: Negate a boolean.
  • nth: Return nth item in list.
  • or: Logical or.
  • print: Write to output.
  • pwd: Print current directory.
  • read: Read from input.
  • source: Evaluate a script file.

(update this list as needed)

@sagebind sagebind self-assigned this Jun 4, 2017
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