Skip to content

GraphScript-Labs/materials-playground-box

Repository files navigation

gs-samples

Sample GraphScript programs and materials.

What’s here

  • hello.gsam - a minimal console example
  • test.gsam - a small test sample
  • semantics.gsam - core language semantics examples
  • planned-semantics.gsam - extended/planned semantics notes
  • beer_bottles.gsam - a sample program
  • api-quick.gsam - a quick API-oriented example
  • logs-server.gsam - server/logging sample

Materials

Reusable Python-injected materials live under materials/:

  • materials/console
  • materials/server
  • materials/api core

Each material has a main.py implementation and a material.conf file with TYPE=PY-INJ.

Examples

Hello world

$ console

- log
  ! Hello, GSAM!

Start a server

$ console
$ server

- on request
  > handle request
    - log
      + Hello, GSAM!

- start http server
  + 8000

Notes

  • These samples are meant to show GraphScript syntax, materials, and execution patterns.
  • The semantics.gsam file is especially useful for understanding the language shape.
  • The materials/ folder shows how to attach runtime behavior to GraphScript nodes.

About

This repo contains random and potentially foundational materials

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages