Skip to content

Repository files navigation

Tess

Tess 는 엔트리(playentry.org) 작품으로 변환되는 텍스트 프로그래밍 언어입니다.

git clone https://github.com/ddtt786/tess.git
cd tess
pnpm install
pnpm tess check examples/tour.tess
pnpm tess run   examples/all_blocks.tess
pnpm tess build examples/all_blocks.tess -o blocks.ent

라이브러리

내장 라이브러리를 활용하여 직접 파싱하거나 빌드할 수 있습니다.

import { parse } from "@tess/parser";

const result = parse(`
  var score = 0
  scene "main":
    object "cat":
      when key "space" up do
        forward 10
        score += 1
      end
    end
  end
`);

result.ok; // true
result.ast; // { type: 'Program', body: [...] }
result.errors; // [{ line, column, message }]
result.warnings; // [{ line, column, message }]
import { parse, compileProject, makeEntryBundle } from "@tess/compiler";

const result = compileProject(source, { path: "main.tess" });
if (result.ok) {
  fs.writeFileSync("game.ent", makeEntryBundle(result.project, result.assets));
}

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages