*** Recipe Updates ***
#34
I have written a parser for the new grammar, its code is even a bit shorter than the old parser, and I'd say it's much more cleaner, as it's separated into several functions etc.

Now I need to write the recipe matching - get the recipe that represents the current arrangement on the crafting table. This is gonna be a bit more difficult Smile
It seems that the "*:2"-style coords would make the recipe matcher too complicated. I think I'll step down from that feature. So the coord grammar is revised:
Code:
<IngredientN> = <ItemType>, <Coord1>, <Coord2>, ... <CordN>
<CoordN> = <X>:<Y> or *
This means that either full coords must be given, or a single asterisk, meaning "anywhere".

Note that "anywhere" may match already matched items, so the following recipe wouldn't work:
Code:
# Sticks:
Planks, *, * | Stick, 4
# This would match even a single pile of at least 2 planks
Reply
Thanks given by:


Messages In This Thread
*** Recipe Updates *** - by dorkboy - 04-13-2012, 05:38 PM
RE: *** Recipe Updates *** - by NiLSPACE - 04-13-2012, 06:59 PM
RE: *** Recipe Updates *** - by xoft - 04-13-2012, 07:29 PM
RE: *** Recipe Updates *** - by dorkboy - 04-13-2012, 09:10 PM
RE: *** Recipe Updates *** - by FakeTruth - 04-13-2012, 10:04 PM
RE: *** Recipe Updates *** - by xoft - 04-13-2012, 10:22 PM
RE: *** Recipe Updates *** - by NiLSPACE - 04-14-2012, 04:02 AM
RE: *** Recipe Updates *** - by dorkboy - 04-14-2012, 05:24 AM
RE: *** Recipe Updates *** - by xoft - 04-15-2012, 03:26 AM
RE: *** Recipe Updates *** - by dorkboy - 04-17-2012, 10:56 AM
RE: *** Recipe Updates *** - by dorkboy - 04-21-2012, 01:32 PM
RE: *** Recipe Updates *** - by xoft - 04-22-2012, 02:06 AM
RE: *** Recipe Updates *** - by Luksor - 06-03-2012, 07:02 AM
RE: *** Recipe Updates *** - by xoft - 06-03-2012, 05:11 PM
RE: *** Recipe Updates *** - by Luksor - 06-03-2012, 06:13 PM
RE: *** Recipe Updates *** - by xoft - 06-03-2012, 06:46 PM
RE: *** Recipe Updates *** - by Luksor - 06-03-2012, 07:01 PM
RE: *** Recipe Updates *** - by xoft - 06-03-2012, 07:30 PM
RE: *** Recipe Updates *** - by Luksor - 06-03-2012, 07:40 PM
RE: *** Recipe Updates *** - by NiLSPACE - 06-03-2012, 07:36 PM
RE: *** Recipe Updates *** - by xoft - 06-03-2012, 07:48 PM
RE: *** Recipe Updates *** - by NiLSPACE - 06-03-2012, 07:53 PM
RE: *** Recipe Updates *** - by xoft - 06-03-2012, 07:59 PM
RE: *** Recipe Updates *** - by NiLSPACE - 06-03-2012, 08:02 PM
RE: *** Recipe Updates *** - by xoft - 06-03-2012, 08:19 PM
RE: *** Recipe Updates *** - by NiLSPACE - 06-03-2012, 08:32 PM
RE: *** Recipe Updates *** - by Luksor - 06-03-2012, 08:23 PM
RE: *** Recipe Updates *** - by xoft - 06-03-2012, 08:24 PM
RE: *** Recipe Updates *** - by Luksor - 06-03-2012, 08:24 PM
RE: *** Recipe Updates *** - by xoft - 06-03-2012, 08:39 PM
RE: *** Recipe Updates *** - by Luksor - 06-03-2012, 08:42 PM
RE: *** Recipe Updates *** - by NiLSPACE - 06-03-2012, 08:48 PM
RE: *** Recipe Updates *** - by xoft - 06-03-2012, 09:03 PM
RE: *** Recipe Updates *** - by xoft - 06-03-2012, 10:43 PM
RE: *** Recipe Updates *** - by FakeTruth - 06-04-2012, 02:54 AM
RE: *** Recipe Updates *** - by Luksor - 06-04-2012, 05:16 AM
RE: *** Recipe Updates *** - by xoft - 06-04-2012, 05:20 AM
RE: *** Recipe Updates *** - by xoft - 06-04-2012, 06:43 AM
RE: *** Recipe Updates *** - by Taugeshtu - 06-04-2012, 07:00 AM
RE: *** Recipe Updates *** - by FakeTruth - 06-04-2012, 07:40 AM
RE: *** Recipe Updates *** - by xoft - 06-04-2012, 03:32 PM
RE: *** Recipe Updates *** - by xoft - 06-04-2012, 10:40 PM
RE: *** Recipe Updates *** - by xoft - 06-05-2012, 04:45 PM
RE: *** Recipe Updates *** - by Taugeshtu - 06-05-2012, 08:12 PM
RE: *** Recipe Updates *** - by xoft - 06-05-2012, 08:15 PM
RE: *** Recipe Updates *** - by Taugeshtu - 06-05-2012, 08:19 PM
RE: *** Recipe Updates *** - by Taugeshtu - 06-05-2012, 11:19 PM
RE: *** Recipe Updates *** - by xoft - 06-05-2012, 11:50 PM
RE: *** Recipe Updates *** - by xoft - 06-06-2012, 01:31 AM
RE: *** Recipe Updates *** - by Taugeshtu - 06-06-2012, 01:38 AM
RE: *** Recipe Updates *** - by Luksor - 06-07-2012, 05:41 AM
RE: *** Recipe Updates *** - by xoft - 06-07-2012, 06:15 AM
RE: *** Recipe Updates *** - by Taugeshtu - 06-07-2012, 06:33 AM
RE: *** Recipe Updates *** - by NiLSPACE - 06-07-2012, 03:17 PM
RE: *** Recipe Updates *** - by NiLSPACE - 06-11-2012, 01:56 AM
RE: *** Recipe Updates *** - by xoft - 06-11-2012, 03:32 PM
RE: *** Recipe Updates *** - by NiLSPACE - 09-29-2012, 10:08 PM
RE: *** Recipe Updates *** - by xoft - 09-29-2012, 11:39 PM
RE: *** Recipe Updates *** - by NiLSPACE - 09-29-2012, 11:46 PM
RE: *** Recipe Updates *** - by xoft - 09-30-2012, 12:46 AM
RE: *** Recipe Updates *** - by NiLSPACE - 09-30-2012, 12:53 AM
RE: *** Recipe Updates *** - by xoft - 09-30-2012, 01:04 AM
RE: *** Recipe Updates *** - by NiLSPACE - 09-30-2012, 01:11 AM
RE: *** Recipe Updates *** - by NiLSPACE - 11-17-2012, 07:05 AM
RE: *** Recipe Updates *** - by xoft - 11-17-2012, 07:29 PM
RE: *** Recipe Updates *** - by NiLSPACE - 11-17-2012, 07:35 PM
RE: *** Recipe Updates *** - by xoft - 11-17-2012, 08:08 PM
RE: *** Recipe Updates *** - by NiLSPACE - 01-12-2013, 03:12 AM
RE: *** Recipe Updates *** - by NiLSPACE - 07-16-2014, 03:59 AM
RE: *** Recipe Updates *** - by xoft - 07-16-2014, 04:17 AM
RE: *** Recipe Updates *** - by NiLSPACE - 08-02-2014, 08:09 AM



Users browsing this thread: 21 Guest(s)