generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: [RELEASE] Rule based pattern matcher

Previous Thread :: Next Thread 
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
12 Jan 2013 07:48 PM
Welp, it took me all day, but I finally got 95% or so of the bugs out of this.

The following is a pastebin ID:
gqH3tHmp

I've tried to include as much documentation as is possible in a 15 minute time span, if you need help with something ask.
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
12 Jan 2013 08:16 PM
No one is having any problems with this?

Oh, btw, should I make some prettifier code? As is the system is... ugly as all get out.
Report Abuse
DannyCore is not online. DannyCore
Joined: 25 Apr 2012
Total Posts: 990
12 Jan 2013 08:18 PM
that's real long
did you do that all in one day?
without getting lazy!?!
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
12 Jan 2013 08:19 PM
The original source file is only 325 lines long, most of what you're seeing is the final output of the MoonScript compiler.
Report Abuse
RenderSettings is not online. RenderSettings
Joined: 16 Aug 2010
Total Posts: 2560
12 Jan 2013 08:21 PM
I don't quite get the use for this. It's a more hierarchy-based regex matcher?
Report Abuse
DannyCore is not online. DannyCore
Joined: 25 Apr 2012
Total Posts: 990
12 Jan 2013 08:23 PM
oh, nice job
I didn't even test it yet but by looking at it it seems legit
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
12 Jan 2013 08:24 PM
Parser expression grammars were the major inspiration for this.

The system can be used in a variety of ways, checking conformance, generating ASTs, or collecting information via captures. All three of those are directly built in.
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
12 Jan 2013 08:24 PM
AST format may vary...
Report Abuse
mustyoshi is not online. mustyoshi
Top 50 Poster
Joined: 27 Dec 2007
Total Posts: 41651
12 Jan 2013 09:37 PM
Why not just write a regex engine?

~Monica
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
12 Jan 2013 09:40 PM
Because regex is stupid. :D
Report Abuse
mustyoshi is not online. mustyoshi
Top 50 Poster
Joined: 27 Dec 2007
Total Posts: 41651
12 Jan 2013 09:41 PM
I like your attitude.

~Monica
Report Abuse
RenderSettings is not online. RenderSettings
Joined: 16 Aug 2010
Total Posts: 2560
12 Jan 2013 09:46 PM
False. Regex is the best thing since sliced bread.
Bonus points if you use the ? operator to crash servers.
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
12 Jan 2013 10:05 PM
My system can be made to completely parse Lua into a tree, why would I downgrade to regex?
Report Abuse
ColorfulBody is not online. ColorfulBody
Joined: 17 Jun 2012
Total Posts: 2353
13 Jan 2013 12:48 AM
Why not just give us the MoonScript source code?
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
13 Jan 2013 07:42 AM
I'll put it on github.
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
13 Jan 2013 08:23 AM
Available on github as: Magisun/LRules-Parser
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
13 Jan 2013 11:05 AM
Should I add an extension library, or just incorporate the changes directly into the main script?

I'm adding stuff like overloaded constructors to various classes and helper rules...
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
15 Jan 2013 03:35 PM
Implemented in the main source.

Anyone want to help with documentation?
I'd like to think that my code uses clear enough names, but just in case... Anyway, it'd be greatly appreciated.
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
15 Jan 2013 07:02 PM
Added rule skipping.

Time for documentation.
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
16 Jan 2013 05:44 AM
Identified an error in rule skipping, redundant after check and naive matching.

I'll get documentation v1 up on the project wiki later today around the same time I correct the rule skipping system.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image