Coder Social home page Coder Social logo

mse's Introduction

MSE (NC)

C-style mud/webgame script engine

C was dead after forced to mix OO, java was born to be rebirth of C, but was dead after J2EE was "invented".
The original reason why we need computer language is we need a "language", not "framework" with tons of document.
We need a kind of "language" we can just use it to create world, without reading tons of documents about "framework".

1. This script syntax is inherit from C/java/javascript, it's easy to learn, easy to read, easy to maintain.
2. It supports weak-type variable, you don't need define the type before use it.
3. It's designed for huge concurrency runtime, so any object can be defined as "real global" accross multi-server.
If a variable is defined like:
	global world;
The object "world" wil be stored on global memcached cluster automatically.
Every front web server will read/write it synchronized and safely.

In addition to above feature, I hope it can be a kind of light-wight and high-efficient web programming language. ( So an template toolkit should be developed in the future)


Installation and development guide:

-------- MACOS & linux ------------

Make:
$ make -f makefile_macos

test mse:
$ cd bin
$ ./mse
change the main.cpp as you want to test, and rebuild again

test cgi from apache:
1. Modify the configuration file of your apache
$ vi /usr/local/apache2/conf/httpd.conf 

add line
ScriptAlias /cgi-bin/ "/Users/juweihua/studio/projects/WebMudFramework/ScriptEngine/mse/cgi-bin/"
in block
<IfModule alias_module>
...
</IfModule>

add lines
<Directory "/Users/juweihua/studio/projects/WebMudFramework/ScriptEngine/mse/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>
Please change the position of cgi-bin folder to your own

2. start apache
$ /usr/local/apache2/bin/apachectl start
(The position where you installed apache maybe different)

3. access http://localhost/cgi-bin/cs.cgi from your browser
You can change cgi-bin/cs_cgi.cpp as you want

Add/Change syntax
The grammar is defined in cocoR/cs.atg, you can change it and run "make parser" then "make -f makefile_macos"
There is a "grep.pl" under cocoR folder, you can use it to see the clean grammar definition without code


-------- windows ------------
Not available currently

mse's People

Contributors

jackieju avatar

Stargazers

onebody avatar harmy avatar  avatar

Watchers

 avatar

Forkers

daoopp

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.