GitHub Hot Board

GitHub Hot Board · 저장소 아카이브

matz/streem

prototype of stream based programming language (소개는 저장소 자체 문서에서 왔습니다.)

데이터 기준 October 26matz

최고 순위

#487

종합 · C 언어별

4.6K

누적 스타

235

포크 수

0

최근 30일 기록 일수

프로젝트 상태라이선스: MIT최근 push: January 3열린 이슈(PR 포함): 24

2026-10-25부터 수집. 미확인 = 아직 미수집

README에 뱃지를 붙여보세요 · matz/streem[![README에 뱃지를 붙여보세요](https://git.vaiox.xyz/api/badge/matz/streem.svg)](https://git.vaiox.xyz/ko/repo/matz/streem)
<a href="https://git.vaiox.xyz/ko/repo/matz/streem"><img src="https://git.vaiox.xyz/api/badge/matz/streem.svg" alt="README에 뱃지를 붙여보세요" height="20"></a>

프로젝트 문서

Streem

Build Status Gitter

Streem is a stream based concurrent scripting language. It is based on a programming model similar to the shell, with influences from Ruby, Erlang, and other functional programming languages.

Note: Streem is still in the design stage. It's not working yet. Stay tuned.

Compiling

Installing dependencies

  • bison
  • flex
  • gcc / clang

Run make

make

Examples

In Streem, a simple cat program looks like this:

stdin | stdout

You can try it out by (firstly cd to streem top directory):

$ bin/streem -e 'stdin | stdout'

or

$ bin/streem examples/01cat.strm

Streem is a (sort of) DSL for data flows. Above code means building data-flow connection between stdin and stdout. Actual data processing will be done in the event loop invoked after program execution.

For another example, a simple FizzBuzz will look like this:

# seq(100) returns a stream of numbers from 1 to 100.
# A function object in pipeline works as a map function.
# stdout is an output destination.
seq(100) | map{x->
  if (x % 15 == 0)     "FizzBuzz"
  else if (x % 3 == 0) "Fizz"
  else if (x % 5 == 0) "Buzz"
  else                 x
} | stdout

The second part in the pipeline ({x ->...}) is a function object. If a function object is connected in the pipeline, it will be invoked for each element in the stream.

There are more examples under folder examples/. Just play with them!

Contributing

Send a pull request to https://github.com/matz/streem. We consider you have granted non-exclusive right to your contributed code under MIT license. Use https://github.com/matz/streem/issues for discussion.

License

MIT license (© 2015-2016 Yukihiro Matsumoto)

현재 순위

  • 487

    종합 랭킹 · 역대 최강 · C

    4.6K 스타 · 235 fork · 총 스타 수

    종합 · C →

최근 30일 추이

최근 30일간 기록이 없습니다.

← 랭킹으로