Sha256: 9493788c8b52eb346210fb177c9b1d10a5f3d1d9b36cd582e16279e33799adbd

Contents?: true

Size: 559 Bytes

Versions: 8

Compression:

Stored size: 559 Bytes

Contents

%%{
	machine query;
	
	# An application/x-www-form-urlencoded parser based on the definition by WhatWG.
	# Based on https://url.spec.whatwg.org/#application/x-www-form-urlencoded
	pchar = any - [&=\[\]%+];
	echar = pchar | ('+' | '%' xdigit xdigit) >encoded;
	
	integer = ([0-9]+) >integer_begin %integer_end;
	string = (echar+ - integer) >string_begin %string_end;
	
	value = (echar*) >value_begin %value_end;
	
	index = string (
		'[' (integer | string) ']'
	)* ('[]' %append)?;
	
	pair = (
		index ('=' value)?
	) %pair;
	
	main := ((pair '&')* pair)?;
}%%

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
trenni-3.14.0 parsers/trenni/query.rl
trenni-3.13.2 parsers/trenni/query.rl
trenni-3.13.1 parsers/trenni/query.rl
trenni-3.13.0 parsers/trenni/query.rl
trenni-3.12.0 parsers/trenni/query.rl
trenni-3.11.0 parsers/trenni/query.rl
trenni-3.10.0 parsers/trenni/query.rl
trenni-3.9.0 parsers/trenni/query.rl