Code Monkey home page Code Monkey logo

psl's Introduction

PSL is Script Language

PSL is Embeddable Script Language for C++

C系構文のスクリプト言語
速度はそれなりですが、軽くて必要な機能が揃っていて拡張性が高いです

組み込みスクリプト言語
C++からPSLの関数を呼び出したり
PSLからC++の関数を呼び出したり出来ます
C++側のコードを極めて簡単に書けるのが特徴

includeするだけで使えるよ!
BCC(古い)とVC(ちょっと前)とgcc(新しい)とclang(微妙)でコンパイル確認済み
WindowsでもLinuxでも使えます

・C系構文
・動的型っぽいようなそうでもない様な
・宣言無しっぽいようなそうでもない様な
・基本データ型は、整数、符号無し16進数、浮動小数点数、文字列
・配列、連想配列、ジャグ配列
・参照型
・クラスっぽいもの(静的な継承構文とカプセル化の概念が無い)
・関数はファーストクラスオブジェクト
・型もファーストクラスオブジェクトなので動的にジェネリックっぽいことが出来る
・動的ダックタイピング
・クロージャ
・コルーチン
・多重代入
・参照カウントによる自動的なスクリプト変数の管理
・手動でマークアンドスウィープGCを呼べる
・スクリプト変数を表すC++クラスであるvariable型を利用した、本体とスクリプト間のシンプルでシームレスな値のやりとり
・C関数やC++クラスを簡単にスクリプトに渡せるバインダ
・コンパイルしたバイトコードの保存、読み込み、実行

詳しい解説はwikiにて
https://github.com/Silica/PSL/wiki/
またはWindows用バイナリと共にメモ的なtxtがあります
https://skydrive.live.com/?cid=85BB9456A2A8D41D&id=85BB9456A2A8D41D!1939

STG01はPSLを組み込みスクリプトとして活用したサンプルゲームです
C++コードの一部も公開しています
https://skydrive.live.com/?cid=85BB9456A2A8D41D&id=85BB9456A2A8D41D!1934

ライセンスはzlib/libpng Licenseです
ただ使うだけなら好きに使っていいです
改変版を公開したい場合は改変した旨と、元のライセンスを表示する必要がありますが
ライセンス条項はソース内に直接書いてありますのでそこを削除しなければ特に気にする必要はありません
ライセンスの適用範囲はPSLディレクトリ内のヘッダファイルのみです

psl's People

Contributors

silica avatar saitoha avatar

Stargazers

 avatar  avatar Chen Tao avatar toge avatar molety avatar Comamoca avatar  avatar srdw avatar  avatar Cairdac avatar Tennn avatar  avatar  avatar  avatar Totoki Kei avatar James Urquhart avatar KOBAYASHI Yū avatar mizt avatar Hiroya Fujinami avatar yuusuke.kuzawa avatar  avatar  avatar  avatar  avatar  avatar Sven Freiberg avatar Nickle avatar  avatar Tetsuya Hayashi avatar  avatar arithmeticae avatar  avatar  avatar Takuya Yoshida avatar Ian Macalinao avatar Masato Nakamura avatar

Watchers

Takeshi Watanabe avatar  avatar Yohei Okaya avatar James Cloos avatar  avatar okayu avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.