Skip to content

manialib/maniascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Manialib\Maniascript

Unstable!

Standalone PHP component to help developing Maniascript applications for the Manialink browser. This is part of Manialib.

Autoloader

Manialib\Maniascript\Autoloader provides a way to automatically load a Maniascript file, given it's library name (eg. "Manialib/Logger.Script.txt") and a set of include paths. It's inspired from PHP's PSR-4.

See Manialib\Maniascript\AutoloaderInterface for reference.

Compiler

Manialib\Maniascript\Compiler helps partitioning a Maniascript application in several files when you cannot use normal #Include directives (eg. when writing a Maniascript application for the Manialink browser). It will replace the "include as" directives recursively, eventually providing a single script.

Libraries

todo

Limitations

Right now, included libraries must be written with "full namespaces", compared to standard #Includes where you only define the function name, not the fully qualified function name.

Eg. if you're using #Include "Manialib/Logger.Script.txt" as Logger and Logger::Info(), the Info() function in the Logger library will be defined as Manialib_Logger_Info() whereas with standard #Includes it would be defined as Info().

Example

See /example

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages