# Operators => Priority
OPERATORS={
  '+' => 0,
...

Ruby Simple tokenizer

by tzar, August 06, 2011 03:17, No refactoring, tagged with ruby, parsing

Takes a string and returns ...

9a75a91432c4a6b40bfbb6c6016296ec Talk
class Position

  attr_accessor :x, :y
...

Ruby parsing 2 1-digit numbers

by Martin Carel, January 15, 2009 21:17, 7 refactorings, tagged with ruby, parsing

Is there a better way to do...

6fe6808d7705a77f61e77f24dcebde14 Talk
def writefile(file, *linedata)
	linedata.each do |line| 	
		file << line.join(",") + "\n"
...

Ruby Parsing non-delimited text

by thepanu, October 06, 2008 07:48, 1 refactoring, tagged with parsing, csv, non-delimited, regexp

I have large text-reports f...

98edd841bbc19903cd758722d9745f0b Talk