Commit Graph

3 Commits

Author SHA1 Message Date
Jamie D
de861a3915 TG UPDATE 1: Juke Build (#17284)
* Juke Build

* Done

* Done 2

* Test

* Update

* build chmod+x I hate linux so much its stupid

* build chmod+x I hate linux so much its stupid 2

* e

* update

* Lets see what happens

* NICE

* Update build

* GOD SAKE

* :[

* YEET

* Update .gitignore

* Delete tgui-common.bundle.js

* Delete tgui-polyfill.min.js

* Revert "Delete tgui-polyfill.min.js"

This reverts commit 5446645db0.

* Revert "Delete tgui-common.bundle.js"

This reverts commit 206377aaea.

* Delete tgui-common.bundle.js
2023-01-03 21:16:14 +00:00
Bjorn Neergaard
063dd9fb84 Get the code running on 510
* Travis for 510
* Remove json, list2text, text2list, bygex
* Change blind and click catcher to a low plane
2016-02-04 17:19:40 -06:00
carnie
6529e7b302 Interface for using boost::regex in byond.
Regex is a robust text-parsing mini-language. It can perform complex and dynamic searches and return the results in an easy to read format. This implementation also uses Boost's extended formatting syntax which gives you a flexible way to conditionally replace complex strings with only a few lines of code

Source code and license info can be found here: http://code.google.com/p/byond-regex/
Licensed under LGPL.

This uses the perl regex syntax (with some extensions) in non-recursive mode (as recursion has additional overheads).

Information on this syntax can be found here: http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html

There are many introductions to regex on the internet. Here is the one I learned from: http://www.regular-expressions.info/tutorial.html

Note: I have added #define USE_BYGEX in code/_compile_options.dm. Simply comment out the define if you encounter any problems.

Due to byond being unable to communicate with a dll through anything but C-strings, the results are returned to byond in a string similar to those you get with list2params. Since byond uses parameters a lot, its params2list() proc is fairly streamlined, so it's pretty much the fastest way you could do this with byond. This data is then stored in a datum/regex object for easy use. See demo.dm datum/regex/proc/report() for an example.
2014-11-13 05:55:58 +00:00