0.5.0 • Published 1 year ago

@graceful-language/core v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Graceful Language - Core

NOTE: In very early development stage. Primairly experimenting with a few ideas so use at your own peril.

A simple programing language created for the common person. This package contains the core minimal features of the language with the hope of building on top of that. Graceful has primarily been inspired by Lisp, Erlang, Forth and Javascript. However, it should be noted that languages like Blitz Basic, Python, Actionscript, Smalltalk, Eiffel, Lua, Ruby and many more have also played somewhat of a role in Graceful's design. The hope with Graceful is to be a simple language at it's core with a simple set of ideas to work with. From there the end user can build upon the language and tailor it to their own needs. Graceful has been primarily developed in the Javascript and Browser eco system so that it can easily be portable and shared with others. Hopefully as the langauge gets more stable it can be port to other environments as well.

Keywords

In the interest of keeping Graceful simple the desire is to reduce the total number of keywords in the core language. Currently here are the list of 8 keywords reserved by the language.

  • _list - Creates a list of tag (symbolic) items. A list can be thought of like a JS literal object or associative array.
  • _item - A base structure within graceful that holds metadata about the value or target referenced. It is the main generic type used by the language. Items contian data, info, temp, link metadata structures about the item.
  • _get - Get a reference from a specified storage target.
  • _ignore - Ignore the contained content. Useful for comments in code
  • _log - Output content to some display. The intention is that the host system implements this functionality.
  • _set - Set a reference for a specified storage target.
  • _share - Share a reference to a specific target. Think of this like a return statement in a function.
  • _write - Capture the the contained contents as a string / list of character values or codes.

It is important to note that the language marks reserved keywords with a leading _ character. This is so that keywords can be re-mapped or aliased to some other keyword suited for the needs of the end user.

Concepts and Terminology

NOTE: To come in the future...

Examples

NOTE: To come in the future...

Resources

0.6.0

1 year ago

0.5.0

1 year ago

0.3.0

1 year ago

0.1.0

1 year ago