Sha256: f2b8c1d98be2d695a140e4dcd32ad138426cdc7b71d49ef6d6299230065174af

Contents?: true

Size: 969 Bytes

Versions: 5

Compression:

Stored size: 969 Bytes

Contents

Grammar PdfAttributes
	Tokens
		IDENTIFIER = /^\/[\w:+\#\-\.]*(, ?[\w:+\#\-\.]*)*/n
		NUMERIC = /-?[0-9]+([.,][0-9]+)?/n
		REFERENCE = /[0-9]+\s+[0-9]+\s+R/n
		WORD = /[a-z\.]{2,}/in
		SPACE = /\s+/mn [:Skip]
		COMMENT = /%[^%]*%/mn [:Skip]
		FILEIDENTIFIER = /<[a-zA-Z0-9\n]+>/n
	Productions
		Expr				->	IDENTIFIER [^: val]
								|		Hash [^: val]
								|		Array [^: val]
								|		REFERENCE [^: val]
								|		NUMERIC [^: val]
								|		Text [^: val]
								|		Date [^: val]
								|		WORD [^: val]
								|   FILEIDENTIFIER [^: val]
		Array				->	'[' ArrayElements ']'
										[: _, values, _]
								|  '[' ']'
										[: _, _]
		ArrayElements -> ArrayElement+
										[^: values]
		ArrayElement -> (Array|Hash|NUMERIC|IDENTIFIER|REFERENCE|WORD|FILEIDENTIFIER|Text)
										[^: _]
		Hash				->	'<<' (IDENTIFIER Expr)* '>>'
										[: _, pairs, _]
		Date				->	'(D:' /[\d+']+/n ')'
		Text				->	/\(([^\)\\]|\\[\(\)\\]?)*?\)/n
										[: text]

Version data entries

5 entries across 3 versions & 1 rubygems

Version Path
rpdf2txt-0.8.4 lib/rpdf2txt/data/_pdfattributes.grammar
rpdf2txt-0.8.4 lib/rpdf2txt/data/pdfattributes.grammar
rpdf2txt-0.8.3 lib/rpdf2txt/data/pdfattributes.grammar
rpdf2txt-0.8.2 lib/rpdf2txt/data/_pdfattributes.grammar
rpdf2txt-0.8.2 lib/rpdf2txt/data/pdfattributes.grammar