• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

.sec parsing grammar

sony94

Member
Joined
Oct 20, 2019
Messages
14
Reaction score
8
Hi 🤪

I'm new to parsing and I want to write a .sec LL parser.

This is the grammar I have so far:

Code:
tile            ->    num-num: tile_tail

tile_tail       ->    ProtectionZone, tile_tail
                ->    Refresh, tile_tail
                ->    cont

cont            ->    Content={num cont_tail

cont_tail       ->    , num cont_tail
                ->    , num key=num cont_tail
                ->    , num cont cont_tail
                ->    }

key             ->    Amount
                ->    Charges
                ->    PoolLiquidType
                ->    RemainingExpireTime  

num             ->    [0-9]+

improvements? corrections?
 
Back
Top