From 3f5cc3ae69ecad6a6909aad4b553eb958241dd14 Mon Sep 17 00:00:00 2001
From: murphy
Date: Wed, 18 Oct 2006 21:48:17 +0000
Subject: Ruby scanner: #{...} delimiters are now :inline_delimiter to solve
CSS problem. New token: :inline_delimiter Scanner tests suite revamped:
colorization, split up into methods.
---
test/scanners/ruby/1.expected.raydebug | 12 +-
test/scanners/ruby/besetzung.expected.raydebug | Bin 4628 -> 4642 bytes
test/scanners/ruby/class.expected.raydebug | 8 +-
test/scanners/ruby/evil.expected.raydebug | 46 +--
test/scanners/ruby/example.expected.raydebug | 80 ++---
test/scanners/ruby/jarh.expected.raydebug | 2 +-
test/scanners/ruby/open-inline.expected.raydebug | 2 +-
test/scanners/ruby/pleac.expected.raydebug | 410 +++++++++++------------
test/scanners/ruby/quotes.expected.raydebug | 2 +-
test/scanners/ruby/strange.expected.raydebug | 36 +-
test/scanners/ruby/undef.expected.raydebug | 4 +-
11 files changed, 301 insertions(+), 301 deletions(-)
(limited to 'test/scanners/ruby')
diff --git a/test/scanners/ruby/1.expected.raydebug b/test/scanners/ruby/1.expected.raydebug
index 61e3dbb..6521fc6 100644
--- a/test/scanners/ruby/1.expected.raydebug
+++ b/test/scanners/ruby/1.expected.raydebug
@@ -311,7 +311,7 @@ comment(=begin
ident(str)operator(.)ident(gsub!)operator(()regexpoperator(,) stringoperator(\))
comment(# day)
- reserved(if) ident(str)operator(.)ident(sub!)operator(()regexpcontent(\))char(\\S)content(*)delimiter(/)modifier(ino)>operator(,) stringoperator(\))
+ reserved(if) ident(str)operator(.)ident(sub!)operator(()regexpcontent(\))char(\\S)content(*)delimiter(/)modifier(ino)>operator(,) stringoperator(\))
ident(wday) operator(=) constant(ABBR_DAYS)operator([)global_variable($1)operator(.)ident(downcase)operator(])
reserved(end)
@@ -358,7 +358,7 @@ comment(=begin
reserved(if) ident(str)operator(.)ident(sub!)operator(()
regexpcontent(\))char(\\S)content(*
+ ()inlinecontent(\))char(\\S)content(*
(?:
)char(\\s)content(+
(-?)char(\\d)content(+\)
@@ -377,7 +377,7 @@ comment(=begin
comment(# us)
reserved(elsif) ident(str)operator(.)ident(sub!)operator(()
- regexpcontent(\))char(\\S)content(*
+ regexpcontent(\))char(\\S)content(*
)char(\\s)content(+
()char(\\d)content(+\))char(\\S)content(*
(?:
@@ -421,7 +421,7 @@ comment(=begin
ident(mday) operator(=) global_variable($4)operator(.)ident(to_i)
comment(# vms)
- reserved(elsif) ident(str)operator(.)ident(sub!)operator(()regexpcontent(\)[^-]*-(-?)char(\\d)content(+\))delimiter(/)modifier(ino)>operator(,) stringoperator(\))
+ reserved(elsif) ident(str)operator(.)ident(sub!)operator(()regexpcontent(\)[^-]*-(-?)char(\\d)content(+\))delimiter(/)modifier(ino)>operator(,) stringoperator(\))
ident(mday) operator(=) global_variable($1)operator(.)ident(to_i)
ident(mon) operator(=) constant(ABBR_MONTHS)operator([)global_variable($2)operator(.)ident(downcase)operator(])
ident(year) operator(=) global_variable($3)operator(.)ident(to_i)
@@ -643,7 +643,7 @@ ident(require) string
ident(a) operator(=) operator([)integer(2)operator(,) integer(3)operator(,) integer(5)operator(,) integer(7)operator(,) integer(11)operator(])
ident(b) operator(=) string
constant(SyncEnumerator)operator(.)ident(new)operator(()ident(a)operator(,) ident(b)operator(\))operator(.)ident(each) operator({) operator(|)ident(i)operator(,) ident(j)operator(|)
- ident(puts) stringcontent( & )inlinedelimiter(")>
+ ident(puts) stringcontent( & )inlinedelimiter(")>
operator(})
reserved(class) class(Signature) operator(<) constant(Array)
@@ -727,5 +727,5 @@ reserved(end)
global_variable($trace) operator(=) pre_constant(false)
ident(test_grammars)operator(.)ident(each_with_index) reserved(do) operator(|)ident(g)operator(,) ident(i)operator(|)
- ident(puts) stringcontent( is )inline reserved(if) ident(g)operator(.)ident(ll1?)delimiter(})>content(LL(1\).)delimiter(")>
+ ident(puts) stringcontent( is )inline reserved(if) ident(g)operator(.)ident(ll1?)inline_delimiter(})>content(LL(1\).)delimiter(")>
reserved(end)
diff --git a/test/scanners/ruby/besetzung.expected.raydebug b/test/scanners/ruby/besetzung.expected.raydebug
index 7a69c13..24d8fee 100644
Binary files a/test/scanners/ruby/besetzung.expected.raydebug and b/test/scanners/ruby/besetzung.expected.raydebug differ
diff --git a/test/scanners/ruby/class.expected.raydebug b/test/scanners/ruby/class.expected.raydebug
index af7a63a..31bc313 100644
--- a/test/scanners/ruby/class.expected.raydebug
+++ b/test/scanners/ruby/class.expected.raydebug
@@ -34,8 +34,8 @@ reserved(class) class(CodeRaySuite) operator(<) constant(TestCase)
ident(highlighter) operator(=) constant(CodeRay)operator(.)ident(html)
ident(dir) reserved(do)
- reserved(for) ident(input) reserved(in) constant(Dir)operator([)stringdelimiter(")>operator(])
- ident(name) operator(=) constant(File)operator(.)ident(basename)operator(()ident(input)operator(,) stringdelimiter(")>operator(\))
+ reserved(for) ident(input) reserved(in) constant(Dir)operator([)stringdelimiter(")>operator(])
+ ident(name) operator(=) constant(File)operator(.)ident(basename)operator(()ident(input)operator(,) stringdelimiter(")>operator(\))
ident(output) operator(=) ident(name) operator(+) string
ident(code) operator(=) constant(File)operator(.)ident(read)operator(()ident(input)operator(\))
@@ -46,7 +46,7 @@ reserved(class) class(CodeRaySuite) operator(<) constant(TestCase)
ident(assert_equal)operator(()ident(expected)operator(,) ident(computed)operator(\))
reserved(else)
constant(File)operator(.)ident(open)operator(()ident(output)operator(,) stringoperator(\)) reserved(do) operator(|)ident(f)operator(|) ident(f)operator(.)ident(write) ident(computed) reserved(end)
- ident(puts) stringdelimiter(")>
+ ident(puts) stringdelimiter(")>
reserved(end)
ident(highlighted) operator(=) ident(highlighter)operator(.)ident(highlight_page) ident(code)operator(,) ident(lang)
@@ -66,7 +66,7 @@ reserved(def) method(load_suite) ident(name)
reserved(rescue) constant(LoadError)
global_variable($stderr)operator(.)ident(puts) stringstring operator(+) ident(name)delimiter(})>content( not found
+!! Folder )inline operator(+) ident(name)inline_delimiter(})>content( not found
)delimiter(
ERR)>
pre_constant(false)
diff --git a/test/scanners/ruby/evil.expected.raydebug b/test/scanners/ruby/evil.expected.raydebug
index 5518de0..cca15dd 100644
--- a/test/scanners/ruby/evil.expected.raydebug
+++ b/test/scanners/ruby/evil.expected.raydebug
@@ -376,7 +376,7 @@ reserved(def) method(bill)operator(()ident(x)operator(\)) ident(x) reserved(end)
ident(p)operator(()ident(bob) stringoperator(\))
reserved(for) ident(bob) reserved(in) operator([)integer(100)operator(]) reserved(do) ident(p)operator(()ident(bob) stringoperator(\)) reserved(end)
ident(p)operator(()ident(bob) stringoperator(\))
-reserved(def) method(%)operator(()ident(n)operator(\)) ident(to_s)operator(+)stringdelimiter(")> reserved(end)
+reserved(def) method(%)operator(()ident(n)operator(\)) ident(to_s)operator(+)stringdelimiter(")> reserved(end)
ident(p)operator(()ident(bill) stringoperator(\))
reserved(begin) ident(sdjkfsjkdfsd)operator(;) reserved(rescue) constant(Object) operator(=)operator(>) ident(bill)operator(;) ident(p)operator(()ident(bill) stringoperator(\)) reserved(end)
ident(p)operator(()ident(bill) stringoperator(\))
@@ -386,7 +386,7 @@ reserved(class) class(Object)
ident(public) symbol(:`)
reserved(def) method(`)operator(()ident(s)operator(\))
- ident(print) stringchar(\\n)delimiter(")>
+ ident(print) stringchar(\\n)delimiter(")>
reserved(end)
reserved(end)
@@ -630,7 +630,7 @@ end
ident(proc) operator({)
operator(})
-ident(p) stringdelimiter(})>delimiter(")>
+ident(p) stringinline_delimiter(})>delimiter(")>
ident(bim)
ident(baz)
ident(bof)
@@ -657,8 +657,8 @@ ident(p)operator(() regexpoperato
ident(p)operator(() regexp)delimiter(~)modifier(m)>operator(\))
ident(p) stringstringchar(\\
-)inlinedelimiter(
+)inlinechar(\\
+)inlinedelimiter(
end)>
@@ -671,27 +671,27 @@ ident(proc) operator({)
operator(})operator(.)ident(call)
-ident(p) stringdelimiter(})>delimiter(")>
+ident(p) stringinline_delimiter(})>delimiter(")>
ident(bim)
ident(baz)
ident(bof)
ident(foobar3)
-ident(p) stringstringstring
-delimiter(})>delimiter(")>
+inline_delimiter(})>delimiter(")>
-ident(p) string operator(;) ident(p) stringdelimiter(})>delimiter(")>string operator(;) ident(p) stringinline_delimiter(})>delimiter(")>stringstring
-ident(p) stringoperator(.)ident(each)operator(()stringoperator(\))operator({)operator(|)ident(s)operator(|) stringoperator(+)ident(s)operator(}) delimiter(})>delimiter(")>
+ident(p) stringoperator(.)ident(each)operator(()stringoperator(\))operator({)operator(|)ident(s)operator(|) stringoperator(+)ident(s)operator(}) inline_delimiter(})>delimiter(")>
ident(jbvd)operator(|)ident(g4543ghb)operator(|)operator(!)instance_variable(@G)global_variable($dfsd)operator(|)ident(fafr)operator(|)ident(e)
operator(|)ident(s4e5rrwware)operator(|)constant(BBBBB)operator(|*)operator(&)operator(^)operator(()operator(*&)operator(^)operator(>)stringdelimiter(")>
+ident(p) stringdelimiter(")>
ident(p) string
ident(p) string
ident(p) string
ident(p) string
ident(p) string
-ident(p) stringdelimiter(")>
+ident(p) stringdelimiter(")>
ident(p) string
-ident(p) stringdelimiter(])>
+ident(p) stringdelimiter(])>
ident(p) string
-ident(p) shelldelimiter(`)>
+ident(p) shelldelimiter(`)>
ident(p) shell
-ident(p)operator(()regexpdelimiter(/)>operator(\))
+ident(p)operator(()regexpdelimiter(/)>operator(\))
comment(#p(/\\#$a \\#@b \\#@@c \\#{$a+@b+@@c}/\) #moved to w.rb)
reserved(class) class(AA)operator(;) reserved(class) class(BB)operator(;) reserved(class) class(CC)
@@ -753,7 +753,7 @@ ident(compile_body)operator(=)ident(outvar)operator(=)stringoperator(\)) operator(+)
- stringchar(\\n)delimiter(")>
+ stringchar(\\n)delimiter(")>
ident(rescu) integer(-1)
reserved(end)
@@ -777,7 +777,7 @@ ident(val)operator(=)stringdelimiter(")>
+ident(p) stringdelimiter(")>
ident(p) string
reserved(class) class(Hosts)
reserved(end)
@@ -893,7 +893,7 @@ ident(p) ident(cls_name) operator(=) operator({)operator(})operator([)symbol(:cl
ident(p) ident(foo)
-ident(p) stringdelimiter(")>
+ident(p) stringdelimiter(")>
ident(p) symbol(:p)
ident(p)operator(()symbol(:p)operator(\))
ident(p)operator(()symboloperator(\))
@@ -910,7 +910,7 @@ ident(p)operator(()integer(-1)operator(\))
ident(p) string
ident(p) string)delimiter(])>
ident(i)operator(=)integer(99)
-ident(p) string)inlinecontent()char(\\n)delimiter(])>
+ident(p) string)inlinecontent()char(\\n)delimiter(])>
ident(p)operator(()symbol(:side)operator(=)operator(>)symbol(:top)operator(\))
ident(p) string
@@ -933,12 +933,12 @@ reserved(if) pre_constant(false)
reserved(end)
reserved(if) pre_constant(false)
ident(ret) operator(=) stringstringcontent(
+ @@parts_template = )inlinecontent(
def parts_template
@@parts_template
end
- )inlineoperator(\))delimiter(})>content(
+ )inlineoperator(\))inline_delimiter(})>content(
def amrita_expand_and_format(element, context, formatter\)
if element.tagname_symbol == :span and element.attrs.size == 0
amrita_expand_and_format1(element, context, formatter\)
@@ -950,7 +950,7 @@ reserved(if) pre_constant(false)
end
def amrita_expand_and_format1(element, context, formatter\)
- )inlinecontent(
+ )inlinecontent(
end)delimiter(
END)>
ident(j)operator(=)integer(55)
@@ -1046,7 +1046,7 @@ a)>
ident(label)operator(=)stringoperator(;)ident(tab)operator(=)operator([)integer(1)operator(,)integer(2)operator(,)integer(3)operator(])
ident(p) stringstringcontent( = arr = Array.new()inlinecontent(, nil\)
+)inlinecontent( = arr = Array.new()inlinecontent(, nil\)
str = a = i = nil
idx = 0
clist.each do |str|
diff --git a/test/scanners/ruby/example.expected.raydebug b/test/scanners/ruby/example.expected.raydebug
index e290d06..492a67a 100644
--- a/test/scanners/ruby/example.expected.raydebug
+++ b/test/scanners/ruby/example.expected.raydebug
@@ -33,9 +33,9 @@ reserved(class) class(Ruby) operator(<) constant(Scanner)
ident(add)operator(()constant(RESERVED_WORDS)operator(,) symbol(:reserved)operator(\))operator(.)
ident(add)operator(()constant(PREDEFINED_CONSTANTS)operator(,) symbol(:pre_constant)operator(\))
- constant(METHOD_NAME) operator(=) regexpcontent( [?!]? )delimiter(/)modifier(xo)>
+ constant(METHOD_NAME) operator(=) regexpcontent( [?!]? )delimiter(/)modifier(xo)>
constant(METHOD_NAME_EX) operator(=) regexpcontent( # common methods: split, foo=, empty?, gsub!
+ )inlinecontent( # common methods: split, foo=, empty?, gsub!
| )char(\\*)char(\\*)content(? # multiplication and power
| [-+~]@? # plus, minus
| [)char(\\/)content(%&|^`] # division, modulo or format strings, &and, |or, ^xor, `system`
@@ -44,11 +44,11 @@ reserved(class) class(Ruby) operator(<) constant(Scanner)
| << | >> # append or shift left, shift right
| ===? # simple equality and case equality
)delimiter(/)modifier(ox)>
- constant(GLOBAL_VARIABLE) operator(=) regexpcontent( | )char(\\d)content(+ | [~&+`'=)char(\\/)content(,;_.<>!@0$?*":F)char(\\\\)content(] | -[a-zA-Z_0-9] \) )delimiter(/)modifier(ox)>
+ constant(GLOBAL_VARIABLE) operator(=) regexpcontent( | )char(\\d)content(+ | [~&+`'=)char(\\/)content(,;_.<>!@0$?*":F)char(\\\\)content(] | -[a-zA-Z_0-9] \) )delimiter(/)modifier(ox)>
constant(DOUBLEQ) operator(=) regexp
constant(SINGLEQ) operator(=) regexp
- constant(STRING) operator(=) regexpcontent( | )inlinecontent( )delimiter(/)modifier(ox)>
+ constant(STRING) operator(=) regexpcontent( | )inlinecontent( )delimiter(/)modifier(ox)>
constant(SHELL) operator(=) regexp
constant(REGEXP) operator(=) regexp
@@ -57,9 +57,9 @@ reserved(class) class(Ruby) operator(<) constant(Scanner)
constant(HEXADECIMAL) operator(=) regexp
constant(BINARY) operator(=) regexp
- constant(EXPONENT) operator(=) regexpcontent( )delimiter(/)modifier(ox)>
- constant(FLOAT) operator(=) regexpcontent( (?: )inlinecontent( | )char(\\.)content( )inlinecontent( )inlinecontent(? \) )delimiter(/)>
- constant(INTEGER) operator(=) regexpcontent(|)inlinecontent(|)inlinecontent(|)inlinedelimiter(/)>
+ constant(EXPONENT) operator(=) regexpcontent( )delimiter(/)modifier(ox)>
+ constant(FLOAT) operator(=) regexpcontent( (?: )inlinecontent( | )char(\\.)content( )inlinecontent( )inlinecontent(? \) )delimiter(/)>
+ constant(INTEGER) operator(=) regexpcontent(|)inlinecontent(|)inlinecontent(|)inlinedelimiter(/)>
reserved(def) method(reset)
reserved(super)
@@ -75,7 +75,7 @@ reserved(class) class(Ruby) operator(<) constant(Scanner)
instance_variable(@regexp_allowed) operator(=) symbol(:set) reserved(if) instance_variable(@regexp_allowed) reserved(or) instance_variable(@scanner)operator(.)ident(matched)operator(.)ident(index)operator(()integer(?\\n)operator(\)) comment(# delayed flag setting)
reserved(elsif) instance_variable(@state) operator(==) symbol(:def_expected)
- reserved(if) instance_variable(@scanner)operator(.)ident(scan)operator(()regexpcontent((?:)char(\\.)content(|::\)\)* | (?:@@?|$\)? )inlinecontent((?:)char(\\.)content(|::\) \) )inlinecontent( )delimiter(/)modifier(ox)>operator(\))
+ reserved(if) instance_variable(@scanner)operator(.)ident(scan)operator(()regexpcontent((?:)char(\\.)content(|::\)\)* | (?:@@?|$\)? )inlinecontent((?:)char(\\.)content(|::\) \) )inlinecontent( )delimiter(/)modifier(ox)>operator(\))
ident(kind) operator(=) symbol(:method)
instance_variable(@state) operator(=) symbol(:initial)
reserved(else)
@@ -87,7 +87,7 @@ reserved(class) class(Ruby) operator(<) constant(Scanner)
reserved(if) instance_variable(@scanner)operator(.)ident(scan)operator(()regexpoperator(\))
ident(kind) operator(=) symbol(:operator)
reserved(else)
- reserved(if) instance_variable(@scanner)operator(.)ident(scan)operator(()regexpcontent( (?:)char(\\.)content(|::\)\)* )inlinecontent( )delimiter(/)modifier(ox)>operator(\))
+ reserved(if) instance_variable(@scanner)operator(.)ident(scan)operator(()regexpcontent( (?:)char(\\.)content(|::\)\)* )inlinecontent( )delimiter(/)modifier(ox)>operator(\))
ident(kind) operator(=) symbol(:method)
reserved(else)
instance_variable(@scanner)operator(.)ident(getch)
@@ -99,9 +99,9 @@ reserved(class) class(Ruby) operator(<) constant(Scanner)
comment(# IDENTIFIERS, KEYWORDS)
reserved(if) instance_variable(@scanner)operator(.)ident(scan)operator(()constant(GLOBAL_VARIABLE)operator(\))
ident(kind) operator(=) symbol(:global_variable)
- reserved(elsif) instance_variable(@scanner)operator(.)ident(scan)operator(()regexpcontent( )delimiter(/)modifier(ox)>operator(\))
+ reserved(elsif) instance_variable(@scanner)operator(.)ident(scan)operator(()regexpcontent( )delimiter(/)modifier(ox)>operator(\))
ident(kind) operator(=) symbol(:class_variable)
- reserved(elsif) instance_variable(@scanner)operator(.)ident(scan)operator(()regexpcontent( )delimiter(/)modifier(ox)>operator(\))
+ reserved(elsif) instance_variable(@scanner)operator(.)ident(scan)operator(()regexpcontent( )delimiter(/)modifier(ox)>operator(\))
ident(kind) operator(=) symbol(:instance_variable)
reserved(elsif) instance_variable(@scanner)operator(.)ident(scan)operator(()regexpoperator(\))
ident(kind) operator(=) symbol(:comment)
@@ -144,7 +144,7 @@ reserved(class) class(Ruby) operator(<) constant(Scanner)
instance_variable(@scanner)operator(.)ident(scan)operator(()constant(REGEXP)operator(\))
ident(kind) operator(=) symbol(:regexp)
regexp#)char(\\\\)char(\\\\)content(]*(?:(?:#)char(\\{)content(.*?)char(\\})content(|#|)char(\\\\)char(\\\\)content(.\)[^>#)char(\\\\)char(\\\\)content(]*\)*>?|([^a-zA-Z)char(\\\\)char(\\\\)content(]\)(?:(?!)char(\\1)content(\)[^#)char(\\\\)char(\\\\)content(]\)*(?:(?:#)char(\\{)content(.*?)char(\\})content(|#|)char(\\\\)char(\\\\)content(.\)(?:(?!)char(\\1)content(\)[^#)char(\\\\)char(\\\\)content(]\)*\)*)char(\\1)content(?\)|)char(\\()content([^\)#)char(\\\\)char(\\\\)content(]*(?:(?:#)char(\\{)content(.*?)char(\\})content(|#|)char(\\\\)char(\\\\)content(.\)[^\)#)char(\\\\)char(\\\\)content(]*\)*)char(\\\))content(?|)char(\\[)content([^)char(\\])content(#)char(\\\\)char(\\\\)content(]*(?:(?:#)char(\\{)content(.*?)char(\\})content(|#|)char(\\\\)char(\\\\)content(.\)[^)char(\\])content(#)char(\\\\)char(\\\\)content(]*\)*)char(\\])content(?|)char(\\{)content([^}#)char(\\\\)char(\\\\)content(]*(?:(?:#)char(\\{)content(.*?)char(\\})content(|#|)char(\\\\)char(\\\\)content(.\)[^}#)char(\\\\)char(\\\\)content(]*\)*)char(\\})content(?|<[^>#)char(\\\\)char(\\\\)content(]*(?:(?:#)char(\\{)content(.*?)char(\\})content(|#|)char(\\\\)char(\\\\)content(.\)[^>#)char(\\\\)char(\\\\)content(]*\)*>?|([^a-zA-Z)char(\\s)char(\\\\)char(\\\\)content(]\)(?:(?!)char(\\2)content(\)[^#)char(\\\\)char(\\\\)content(]\)*(?:(?:#)char(\\{)content(.*?)char(\\})content(|#|)char(\\\\)char(\\\\)content(.\)(?:(?!)char(\\2)content(\)[^#)char(\\\\)char(\\\\)content(]\)*\)*)char(\\2)content(?|)char(\\\\)char(\\\\)content([^#)char(\\\\)char(\\\\)content(]*(?:(?:#)char(\\{)content(.*?)char(\\})content(|#\)[^#)char(\\\\)char(\\\\)content(]*\)*)char(\\\\)char(\\\\)content(?\))delimiter(/)>
- reserved(elsif) instance_variable(@scanner)operator(.)ident(scan)operator(()regexpcontent(|)inlinecontent(|)inlinecontent(\))delimiter(/)modifier(ox)>operator(\))
+ reserved(elsif) instance_variable(@scanner)operator(.)ident(scan)operator(()regexpcontent(|)inlinecontent(|)inlinecontent(\))delimiter(/)modifier(ox)>operator(\))
ident(kind) operator(=) symbol(:symbol)
reserved(elsif) instance_variable(@scanner)operator(.)ident(scan)operator(()regexp
-constant(RWEB) operator(=) stringdelimiter(")>
+constant(RWEB) operator(=) stringdelimiter(")>
comment(#require 'rwebcookie' -> edit by bunny :-\))
@@ -1246,7 +1246,7 @@ reserved(class) class(Rweb)
reserved(begin)
reserved(yield)
reserved(rescue) constant(Exception) operator(=)operator(>) ident(exception)
- global_variable($stderr)operator(.)ident(puts) stringcontent(\): )inlinedelimiter(")>
+ global_variable($stderr)operator(.)ident(puts) stringcontent(\): )inlinedelimiter(")>
global_variable($stderr)operator(.)ident(puts) ident(exception)operator(.)ident(backtrace)operator(.)ident(join)operator(()stringoperator(\))
reserved(unless) instance_variable(@output_started)
@@ -1268,15 +1268,15 @@ reserved(class) class(Rweb)
pre_constant(self)operator(.)ident(puts) stringInternal Server Error)delimiter(")>
pre_constant(self)operator(.)ident(puts) stringThe server encountered an exception and was unable to complete your request.
)delimiter(")>
pre_constant(self)operator(.)ident(puts) stringThe exception has provided the following information:)delimiter(")>
- pre_constant(self)operator(.)ident(puts) string)inlinecontent(: )inlinecontent( on)delimiter(")>
+ pre_constant(self)operator(.)ident(puts) string)inlinecontent(: )inlinecontent( on)delimiter(")>
pre_constant(self)operator(.)ident(puts)
- pre_constant(self)operator(.)ident(puts) stringoperator(\))delimiter(})>content()delimiter(")>
+ pre_constant(self)operator(.)ident(puts) stringoperator(\))inline_delimiter(})>content()delimiter(")>
pre_constant(self)operator(.)ident(puts) string)delimiter(")>
pre_constant(self)operator(.)ident(puts) string)delimiter(")>
reserved(else)
pre_constant(self)operator(.)ident(puts) string
pre_constant(self)operator(.)ident(puts) string
- pre_constant(self)operator(.)ident(puts) stringcontent(: )inlinedelimiter(")>
+ pre_constant(self)operator(.)ident(puts) stringcontent(: )inlinedelimiter(")>
pre_constant(self)operator(.)ident(puts)
pre_constant(self)operator(.)ident(puts) ident(exception)operator(.)ident(backtrace)operator(.)ident(join)operator(()stringoperator(\))
reserved(end)
@@ -1288,7 +1288,7 @@ reserved(class) class(Rweb)
reserved(unless) instance_variable(@output_started)
reserved(unless) instance_variable(@header)operator(.)ident(has_key?)operator(()stringoperator(\))
- pre_constant(self)operator(.)ident(header)operator(()stringdelimiter(")>operator(\))
+ pre_constant(self)operator(.)ident(header)operator(()stringdelimiter(")>operator(\))
reserved(end)
ident(sendHeaders)
@@ -1320,9 +1320,9 @@ reserved(class) class(Rweb)
constant(Cookie)operator(.)ident(disallow) comment(# no more cookies can be set or modified)
reserved(if) operator(!)operator(()instance_variable(@settings)operator(.)ident(has_key?)operator(()stringoperator(\)) reserved(and) instance_variable(@settings)operator([)stringoperator(]) operator(==) pre_constant(true)operator(\)) reserved(and) operator(!)instance_variable(@header)operator(.)ident(has_key?)operator(()stringoperator(\))
reserved(if) instance_variable(@mod_ruby)
- ident(header)operator(()stringcontent( (Ruby/)inlinecontent(, )inlinecontent(\))delimiter(")>operator(\))operator(;)
+ ident(header)operator(()stringcontent( (Ruby/)inlinecontent(, )inlinecontent(\))delimiter(")>operator(\))operator(;)
reserved(else)
- ident(header)operator(()stringcontent( (Ruby/)inlinecontent(\))delimiter(")>operator(\))operator(;)
+ ident(header)operator(()stringcontent( (Ruby/)inlinecontent(\))delimiter(")>operator(\))operator(;)
reserved(end)
reserved(end)
@@ -1332,7 +1332,7 @@ reserved(class) class(Rweb)
reserved(end)
reserved(if) instance_variable(@status) operator(!=) pre_constant(nil)
- global_variable($stdout)operator(.)ident(print) stringcontent( )inlinechar(\\r)char(\\n)delimiter(")>
+ global_variable($stdout)operator(.)ident(print) stringcontent( )inlinechar(\\r)char(\\n)delimiter(")>
reserved(end)
instance_variable(@header)operator(.)ident(each) reserved(do) operator(|)ident(key)operator(,) ident(value)operator(|)
@@ -1343,7 +1343,7 @@ reserved(class) class(Rweb)
string operator(+) ident(char)operator([)integer(1)operator(,)integer(1)operator(])operator(.)ident(upcase)
reserved(end)
- global_variable($stdout)operator(.)ident(print) stringcontent(: )inlinechar(\\r)char(\\n)delimiter(")>
+ global_variable($stdout)operator(.)ident(print) stringcontent(: )inlinechar(\\r)char(\\n)delimiter(")>
reserved(end)
ident(cookies) operator(=) constant(Cookie)operator(.)ident(getHttpHeader) comment(# Get all cookies as an HTTP Header)
reserved(if) ident(cookies)
@@ -1361,7 +1361,7 @@ reserved(class) class(Rweb)
reserved(end)
reserved(if) instance_variable(@status) operator(!=) pre_constant(nil)
- ident(r)operator(.)ident(status_line) operator(=) stringcontent( )inlinedelimiter(")>
+ ident(r)operator(.)ident(status_line) operator(=) stringcontent( )inlinedelimiter(")>
reserved(end)
ident(r)operator(.)ident(send_http_header)
@@ -1372,7 +1372,7 @@ reserved(class) class(Rweb)
ident(key) operator(=) ident(key)operator(.)ident(gsub)operator(()regexpoperator(\)) reserved(do) operator(|)ident(char)operator(|)
string operator(+) ident(char)operator([)integer(1)operator(,)integer(1)operator(])operator(.)ident(upcase)
reserved(end)
- ident(puts) stringcontent(: )inlinedelimiter(")>
+ ident(puts) stringcontent(: )inlinedelimiter(")>
comment(#r.headers_out[key] = value)
reserved(end)
reserved(end)
@@ -1644,17 +1644,17 @@ reserved(class) class(Cookie)
ident(cookie)operator(.)ident(value) operator(=) string
reserved(end)
comment(# TODO: Name and value should be escaped!)
- ident(str) operator(+=) stringcontent(=)inlinedelimiter(")>
+ ident(str) operator(+=) stringcontent(=)inlinedelimiter(")>
reserved(unless) ident(cookie)operator(.)ident(maxage) operator(==) pre_constant(nil)
ident(expire) operator(=) constant(Time)operator(.)ident(now) operator(+) ident(cookie)operator(.)ident(maxage)
ident(expire)operator(.)ident(gmtime)
- ident(str) operator(+=) stringoperator(\))delimiter(})>delimiter(")>
+ ident(str) operator(+=) stringoperator(\))inline_delimiter(})>delimiter(")>
reserved(end)
reserved(unless) ident(cookie)operator(.)ident(domain) operator(==) pre_constant(nil)
- ident(str) operator(+=) stringdelimiter(")>
+ ident(str) operator(+=) stringdelimiter(")>
reserved(end)
reserved(unless) ident(cookie)operator(.)ident(path) operator(==) pre_constant(nil)
- ident(str) operator(+=) stringdelimiter(")>
+ ident(str) operator(+=) stringdelimiter(")>
reserved(end)
reserved(if) ident(cookie)operator(.)ident(secure)
ident(str) operator(+=) string
@@ -1676,21 +1676,21 @@ reserved(class) class(Cookie)
reserved(end)
ident(comma) operator(=) pre_constant(true)
- ident(str) operator(+=) stringcontent(=)char(\\")inlinechar(\\")delimiter(")>
+ ident(str) operator(+=) stringcontent(=)char(\\")inlinechar(\\")delimiter(")>
reserved(unless) ident(cookie)operator(.)ident(maxage) operator(==) pre_constant(nil)
- ident(str) operator(+=) stringchar(\\")delimiter(")>
+ ident(str) operator(+=) stringchar(\\")delimiter(")>
reserved(end)
reserved(unless) ident(cookie)operator(.)ident(domain) operator(==) pre_constant(nil)
- ident(str) operator(+=) stringchar(\\")delimiter(")>
+ ident(str) operator(+=) stringchar(\\")delimiter(")>
reserved(end)
reserved(unless) ident(cookie)operator(.)ident(path) operator(==) pre_constant(nil)
- ident(str) operator(+=) stringchar(\\")delimiter(")>
+ ident(str) operator(+=) stringchar(\\")delimiter(")>
reserved(end)
reserved(if) ident(cookie)operator(.)ident(secure)
ident(str) operator(+=) string
reserved(end)
reserved(unless) ident(cookie)operator(.)ident(comment) operator(==) pre_constant(nil)
- ident(str) operator(+=) stringchar(\\")delimiter(")>
+ ident(str) operator(+=) stringchar(\\")delimiter(")>
reserved(end)
ident(str) operator(+=) string
reserved(end)
@@ -2181,7 +2181,7 @@ comment(=begin
constant(URL_PATTERN) operator(=) regexp)char(\\w)content({3,}\):)char(\\/)char(\\/)content(\))char(\\S)content(+)delimiter(/)>
constant(EMAIL_PATTERN) operator(=) regexp[)char(\\w)char(\\-)content(_.]+\)@[)char(\\w)char(\\-)char(\\.)content(]+)char(\\.)char(\\w)content(+)delimiter(/)>
- constant(HAS_MAGIC) operator(=) regexpcontent(]|(?i:www|ftp\))delimiter(/)>
+ constant(HAS_MAGIC) operator(=) regexpcontent(]|(?i:www|ftp\))delimiter(/)>
constant(MAGIC_PATTERN) operator(=) constant(Regexp)operator(.)ident(new)operator(()string operator(%)
operator([)constant(Smileys)operator(::)constant(MAGIC_SMILEY_PATTERN)operator(,) constant(URL_PATTERN)operator(,) constant(EMAIL_PATTERN)operator(])operator(.)ident(map) operator({) operator(|)ident(pattern)operator(|)
@@ -2766,7 +2766,7 @@ reserved(module) class(WhyTheLuckyStiff)
symbol(:chapters)operator(,) symbol(:expansion_paks)operator(,) symbol(:encoding)operator(,) symbol(:credits)
reserved(def) method([]) ident(x)
instance_variable(@lang)operator(.)ident(fetch)operator(()ident(x)operator(\)) reserved(do)
- ident(warn) ident(warning) operator(=) stringcontent('!])delimiter(")>
+ ident(warn) ident(warning) operator(=) stringcontent('!])delimiter(")>
ident(warning)
reserved(end)
reserved(end)
@@ -2836,7 +2836,7 @@ comment(# Convert the book to HTML)
comment(#)
reserved(if) pre_constant(__FILE__) operator(==) global_variable($0)
reserved(unless) pre_constant(ARGV)operator([)integer(0)operator(])
- ident(puts) stringcontent( [/path/to/save/html])delimiter(")>
+ ident(puts) stringcontent( [/path/to/save/html])delimiter(")>
ident(exit)
reserved(end)
@@ -2855,7 +2855,7 @@ reserved(if) pre_constant(__FILE__) operator(==) global_variable($0)
comment(# Write chapter pages)
ident(chapter_tpl) operator(=) constant(ERB)operator(::)ident(new)operator(() constant(File)operator(.)ident(open)operator(() string operator(\))operator(.)ident(read) operator(\))
ident(book)operator(.)ident(chapters)operator(.)ident(each) reserved(do) operator(|)ident(chapter)operator(|)
- constant(File)operator(.)ident(open)operator(() constant(File)operator(.)ident(join)operator(() ident(site_path)operator(,) stringcontent(.html)delimiter(")> operator(\))operator(,) string operator(\)) reserved(do) operator(|)ident(out)operator(|)
+ constant(File)operator(.)ident(open)operator(() constant(File)operator(.)ident(join)operator(() ident(site_path)operator(,) stringcontent(.html)delimiter(")> operator(\))operator(,) string operator(\)) reserved(do) operator(|)ident(out)operator(|)
ident(out) operator(<<) ident(chapter_tpl)operator(.)ident(result)
reserved(end)
reserved(end)
@@ -2864,7 +2864,7 @@ reserved(if) pre_constant(__FILE__) operator(==) global_variable($0)
comment(# Write expansion pak pages)
ident(expak_tpl) operator(=) constant(ERB)operator(::)ident(new)operator(() constant(File)operator(.)ident(open)operator(() string operator(\))operator(.)ident(read) operator(\))
ident(book)operator(.)ident(expansion_paks)operator(.)ident(each) reserved(do) operator(|)ident(pak)operator(|)
- constant(File)operator(.)ident(open)operator(() constant(File)operator(.)ident(join)operator(() ident(site_path)operator(,) stringcontent(.html)delimiter(")> operator(\))operator(,) string operator(\)) reserved(do) operator(|)ident(out)operator(|)
+ constant(File)operator(.)ident(open)operator(() constant(File)operator(.)ident(join)operator(() ident(site_path)operator(,) stringcontent(.html)delimiter(")> operator(\))operator(,) string operator(\)) reserved(do) operator(|)ident(out)operator(|)
ident(out) operator(<<) ident(expak_tpl)operator(.)ident(result)operator(() ident(binding) operator(\))
reserved(end)
reserved(end)
@@ -3320,7 +3320,7 @@ reserved(class) class(Cube)
reserved(def) method(initialize)
instance_variable(@sides) operator(=) operator([)operator(])
stringoperator(.)ident(each_with_index) operator({) operator(|)ident(side)operator(,) ident(i)operator(|)
- ident(eval)operator(()stringcontent(] = @)inlinecontent( = Side.new()inlinecontent(\))delimiter(")>operator(\))
+ ident(eval)operator(()stringcontent(] = @)inlinecontent( = Side.new()inlinecontent(\))delimiter(")>operator(\))
operator(})
instance_variable(@left)operator(.)ident(sides) operator(=) operator([)instance_variable(@top)operator(,) instance_variable(@front)operator(,) instance_variable(@bottom)operator(,) instance_variable(@back)operator(])
instance_variable(@front)operator(.)ident(sides) operator(=) operator([)instance_variable(@top)operator(,) instance_variable(@right)operator(,) instance_variable(@bottom)operator(,) instance_variable(@left)operator(])
@@ -3381,7 +3381,7 @@ reserved(end)
comment(#$stdin = DATA)
ident(gets)operator(.)ident(to_i)operator(.)ident(times) reserved(do) operator(|)ident(i)operator(|)
- ident(puts) stringcontent(:)delimiter(")>
+ ident(puts) stringcontent(:)delimiter(")>
ident(fs) operator(=) string
integer(9)operator(.)ident(times) operator({) ident(fs) operator(<<) ident(gets) operator(})
ident(cube) operator(=) constant(Cube)operator(.)ident(new)
diff --git a/test/scanners/ruby/jarh.expected.raydebug b/test/scanners/ruby/jarh.expected.raydebug
index a1eb7fc..27938b2 100644
--- a/test/scanners/ruby/jarh.expected.raydebug
+++ b/test/scanners/ruby/jarh.expected.raydebug
@@ -273,7 +273,7 @@ ident(print) ident(sprintf)operator(()stringoperator(.)ident(inspect)operator(\))
-regexpdelimiter(})>delimiter(/)>
+regexpinline_delimiter(})>delimiter(/)>
ident(print) stringoperator(.)ident(scan)operator(()regexpoperator(\))operator(.)ident(collect)operator({)operator(|)ident(x)operator(|)ident(x)operator([)integer(0)operator(])operator(})operator(.)ident(pack)operator(()stringoperator(\))
diff --git a/test/scanners/ruby/open-inline.expected.raydebug b/test/scanners/ruby/open-inline.expected.raydebug
index 03af29e..4db5d06 100644
--- a/test/scanners/ruby/open-inline.expected.raydebug
+++ b/test/scanners/ruby/open-inline.expected.raydebug
@@ -1,2 +1,2 @@
-string>
\ No newline at end of file
diff --git a/test/scanners/ruby/pleac.expected.raydebug b/test/scanners/ruby/pleac.expected.raydebug
index a738eaa..b1e7762 100644
--- a/test/scanners/ruby/pleac.expected.raydebug
+++ b/test/scanners/ruby/pleac.expected.raydebug
@@ -79,7 +79,7 @@ ident(a) operator(=) string
ident(b) operator(=) ident(a)operator(.)ident(unpack)operator(()stringoperator(\))
ident(b)operator(,) ident(c) operator(=) ident(a)operator(.)ident(unpack)operator(()stringoperator(\))
-ident(puts) stringchar(\\n)inlinechar(\\n)delimiter(")>
+ident(puts) stringchar(\\n)inlinechar(\\n)delimiter(")>
reserved(def) method(cut2fmt)operator(()operator(*)ident(args)operator(\))
ident(template) operator(=) string
@@ -158,7 +158,7 @@ ident(sum) operator(=) integer(0)
reserved(for) ident(ascval) reserved(in) ident(string)operator(.)ident(unpack)operator(()stringoperator(\)) comment(# or use Array#each for a pure OO style :\))
ident(sum) operator(+=) ident(ascval)
reserved(end)
-ident(puts) stringdelimiter(")> comment(# since Ruby will go Bignum if necessary)
+ident(puts) stringdelimiter(")> comment(# since Ruby will go Bignum if necessary)
comment(# @@INCLUDE@@ include/ruby/slowcat.rb)
@@ -185,7 +185,7 @@ stringoperator(.)ident(g
ident(rows)operator(,) ident(cols) operator(=) integer(24)operator(,) integer(80)
ident(text) operator(=) string
-ident(text)operator(.)ident(gsub!)operator(()regexpoperator(\)) operator({) ident(eval)operator(()stringdelimiter(")>operator(\)) operator(})
+ident(text)operator(.)ident(gsub!)operator(()regexpoperator(\)) operator({) ident(eval)operator(()stringdelimiter(")>operator(\)) operator(})
ident(puts) ident(text)
stringoperator(.)ident(gsub)operator(()regexpoperator(\)) operator({) integer(2) operator(*) global_variable($&)operator(.)ident(to_i) operator(})
@@ -200,7 +200,7 @@ stringoperator(.)ident(gsu
comment(# @@PLEAC@@_1.10)
-stringcontent( guanacos.)delimiter(")>
+stringcontent( guanacos.)delimiter(")>
ident(print) stringoperator(,) ident(n)integer(+1)operator(,) string
@@ -262,7 +262,7 @@ reserved(end)
ident(line) operator(=) string)>
ident(fields) operator(=) ident(parse_csv)operator(()ident(line)operator(\))
ident(fields)operator(.)ident(each_with_index) operator({) operator(|)ident(v)operator(,)ident(i)operator(|)
- ident(print) stringcontent( : )inlinechar(\\n)delimiter(")>operator(;)
+ ident(print) stringcontent( : )inlinechar(\\n)delimiter(")>operator(;)
operator(})
@@ -302,7 +302,7 @@ reserved(for) ident(username)operator(,) ident(fullname) reserved(in) ident(logi
operator(||) ident(name_code) operator(==) constant(Text)operator(::)constant(Soundex)operator(.)ident(soundex)operator(()ident(firstname)operator(\))
operator(||) ident(name_code) operator(==) constant(Text)operator(::)constant(Soundex)operator(.)ident(soundex)operator(()ident(lastname)operator(\))
reserved(then)
- ident(puts) stringcontent(: )inlinecontent( )inlinedelimiter(")>
+ ident(puts) stringcontent(: )inlinecontent( )inlinedelimiter(")>
reserved(end)
reserved(end)
@@ -346,7 +346,7 @@ comment(# @@PLEAC@@_2.2)
comment(# equal(num1, num2, accuracy\) : returns true if num1 and num2 are)
comment(# equal to accuracy number of decimal places)
reserved(def) method(equal)operator(()ident(i)operator(,) ident(j)operator(,) ident(a)operator(\))
- ident(sprintf)operator(()stringcontent(g)delimiter(")>operator(,) ident(i)operator(\)) operator(==) ident(sprintf)operator(()stringcontent(g)delimiter(")>operator(,) ident(j)operator(\))
+ ident(sprintf)operator(()stringcontent(g)delimiter(")>operator(,) ident(i)operator(\)) operator(==) ident(sprintf)operator(()stringcontent(g)delimiter(")>operator(,) ident(j)operator(\))
reserved(end)
ident(wage) operator(=) integer(536) comment(# $5.36/hour)
@@ -359,8 +359,8 @@ ident(num)operator(.)ident(round) comment(# rounds to in
ident(a) operator(=) float(0.255)
ident(b) operator(=) ident(sprintf)operator(()stringoperator(,) ident(a)operator(\))
-ident(print) stringchar(\\n)content(Rounded: )inlinechar(\\n)delimiter(")>
-ident(printf) stringchar(\\n)content(Rounded: %.2f)char(\\n)delimiter(")>operator(,) ident(a)
+ident(print) stringchar(\\n)content(Rounded: )inlinechar(\\n)delimiter(")>
+ident(printf) stringchar(\\n)content(Rounded: %.2f)char(\\n)delimiter(")>operator(,) ident(a)
ident(print) string
ident(a) operator(=) operator([) float(3.3) operator(,) float(3.5) operator(,) float(3.7)operator(,) float(-3.3) operator(])
@@ -444,16 +444,16 @@ reserved(end)
ident(roman_fifteen) operator(=) integer(15)operator(.)ident(to_roman)
-ident(puts) stringdelimiter(")>
+ident(puts) stringdelimiter(")>
ident(i) operator(=) constant(Integer)operator(.)ident(from_roman)operator(()ident(roman_fifteen)operator(\))
-ident(puts) stringcontent( is )inlinedelimiter(")>
+ident(puts) stringcontent( is )inlinedelimiter(")>
comment(# check)
reserved(for) ident(i) reserved(in) operator(()integer(1)operator(..)integer(3900)operator(\))
ident(r) operator(=) ident(i)operator(.)ident(to_roman)
ident(j) operator(=) constant(Integer)operator(.)ident(from_roman)operator(()ident(r)operator(\))
reserved(if) ident(i) operator(!=) ident(j)
- ident(puts) stringcontent( : )inlinecontent( - )inlinedelimiter(")>
+ ident(puts) stringcontent( : )inlinecontent( - )inlinedelimiter(")>
reserved(end)
reserved(end)
@@ -577,7 +577,7 @@ reserved(def) method(log_base)operator(()ident(base)operator(,) ident(val)operat
reserved(end)
ident(answer) operator(=) ident(log_base)operator(()integer(10)operator(,) integer(10_000)operator(\))
-ident(puts) stringdelimiter(")>
+ident(puts) stringdelimiter(")>
comment(# @@PLEAC@@_2.14)
@@ -600,12 +600,12 @@ ident(require) string
ident(a) operator(=) ident(Complex)operator(()integer(3)operator(,) integer(5)operator(\)) comment(# 3 + 5i)
ident(b) operator(=) ident(Complex)operator(()integer(2)operator(,) integer(-2)operator(\)) comment(# 2 - 2i)
-ident(puts) stringdelimiter(")>
+ident(puts) stringdelimiter(")>
ident(c) operator(=) ident(a) operator(*) ident(b)
ident(d) operator(=) integer(3) operator(+) integer(4)operator(*)constant(Complex)operator(::)constant(I)
-ident(printf) stringcontent(\) = %s)char(\\n)delimiter(")>operator(,) constant(Math)operator(.)ident(sqrt)operator(()ident(d)operator(\))
+ident(printf) stringcontent(\) = %s)char(\\n)delimiter(")>operator(,) constant(Math)operator(.)ident(sqrt)operator(()ident(d)operator(\))
comment(# @@PLEAC@@_2.16)
@@ -621,7 +621,7 @@ ident(printf) stringoperator
ident(print) string
ident(permissions) operator(=) ident(gets)operator(.)ident(chomp)
ident(raise) string reserved(unless) reserved(defined?)operator(()ident(permissions)operator(\))
-ident(puts) stringdelimiter(")>
+ident(puts) stringdelimiter(")>
comment(# @@PLEAC@@_2.17)
@@ -729,7 +729,7 @@ ident(bree) operator(=) integer(361535725)
ident(nat) operator(=) integer(96201950)
ident(difference) operator(=) ident(bree) operator(-) ident(nat)
-ident(puts) stringcontent( seconds between Nat and Bree)delimiter(")>
+ident(puts) stringcontent( seconds between Nat and Bree)delimiter(")>
ident(seconds) operator(=) ident(difference) operator(%) integer(60)
ident(difference) operator(=) operator(()ident(difference) operator(-) ident(seconds)operator(\)) operator(/) integer(60)
@@ -740,7 +740,7 @@ ident(difference) operator(=) operator(()ident(difference) operator(-) ident(hou
ident(days) operator(=) ident(difference) operator(%) integer(7)
ident(weeks) operator(=) operator(()ident(difference) operator(-) ident(days)operator(\)) operator(/) integer(7)
-ident(puts) stringcontent( weeks, )inlinecontent( days, )inlinecontent(:)inlinecontent(:)inlinecontent(\))delimiter(")>
+ident(puts) stringcontent( weeks, )inlinecontent( days, )inlinecontent(:)inlinecontent(:)inlinecontent(\))delimiter(")>
comment(# @@PLEAC@@_3.6)
@@ -753,7 +753,7 @@ ident(year) operator(=) integer(1981)
ident(month) operator(=) string comment(# or `6' if you want to emulate a broken language)
ident(day) operator(=) integer(16)
ident(t) operator(=) constant(Time)operator(.)ident(mktime)operator(()ident(year)operator(,) ident(month)operator(,) ident(day)operator(\))
-ident(print) stringcontent(/)inlinecontent(/)inlinecontent( was a )delimiter(")>operator(,) ident(t)operator(.)ident(strftime)operator(()stringoperator(\))operator(,) string
+ident(print) stringcontent(/)inlinecontent(/)inlinecontent( was a )delimiter(")>operator(,) ident(t)operator(.)ident(strftime)operator(()stringoperator(\))operator(,) string
comment(# @@PLEAC@@_3.7)
@@ -780,7 +780,7 @@ comment(# Ruby gives the seconds in floating format when substracting two Time o
ident(before) operator(=) constant(Time)operator(.)ident(now)
ident(line) operator(=) ident(gets)
ident(elapsed) operator(=) constant(Time)operator(.)ident(now) operator(-) ident(before)
-ident(puts) stringcontent( seconds.)delimiter(")>
+ident(puts) stringcontent( seconds.)delimiter(")>
comment(# On my Celeron-400 with Linux-2.2.19-14mdk, average for three execs are:)
comment(# This Ruby version: average 0.00321 sec)
@@ -836,7 +836,7 @@ reserved(class) class(MailHopDelta)
ident(hop)operator(.)ident(gsub!)operator(()regexpoperator(,)stringoperator(\))
ident(whence) operator(=) ident(hop)operator(.)ident(match)operator(()regexpoperator(\))operator([)integer(1)operator(])
reserved(unless) ident(whence)
- ident(warn) stringdelimiter(")>
+ ident(warn) stringdelimiter(")>
reserved(next)
reserved(end)
ident(from) operator(=) global_variable($+) reserved(if) ident(hop) operator(=)operator(~) regexp
@@ -885,11 +885,11 @@ END_OF_HERE_DOC)>
ident(bigarray) operator(=) constant(IO)operator(.)ident(readlines)operator(()stringoperator(\))operator(.)ident(collect) operator({) operator(|)ident(l)operator(|) ident(l)operator(.)ident(chomp) operator(})
ident(name) operator(=) string
-ident(banner) operator(=) stringcontent(, and welcome!)delimiter(\))>
+ident(banner) operator(=) stringcontent(, and welcome!)delimiter(\))>
-ident(host_info) operator(=) shelldelimiter(`)>
+ident(host_info) operator(=) shelldelimiter(`)>
-shelldelimiter(\))>
+shelldelimiter(\))>
ident(banner) operator(=) stringoperator(.)ident(split)operator(()stringoperator(\))
@@ -913,10 +913,10 @@ ident(print) stringoperator(,) ident(a
comment(# -> I have redyellowgreen marbles)
comment(# But unlike Perl:)
-ident(print) stringcontent( marbles)char(\\n)delimiter(")>
+ident(print) stringcontent( marbles)char(\\n)delimiter(")>
comment(# -> I have redyellowgreen marbles)
comment(# So, needs:)
-ident(print) stringoperator(\))delimiter(})>content( marbles)char(\\n)delimiter(")>
+ident(print) stringoperator(\))inline_delimiter(})>content( marbles)char(\\n)delimiter(")>
comment(# -> I have red yellow green marbles)
comment(#!/usr/bin/ruby)
@@ -946,7 +946,7 @@ ident(lists) operator(=) operator([)
operator(])
reserved(for) ident(list) reserved(in) ident(lists) reserved(do)
- ident(puts) stringcontent(.)delimiter(")>
+ ident(puts) stringcontent(.)delimiter(")>
reserved(end)
@@ -964,7 +964,7 @@ ident(ary)operator([)ident(index_new_last_elem)operator(]) operator(=) ident(val
reserved(def) method(what_about_that_array)operator(()ident(a)operator(\))
ident(print) stringoperator(,) ident(a)operator(.)ident(size)operator(,) string
comment(# Index of last element is not really interesting in Ruby)
- ident(print) stringcontent('.)char(\\n)delimiter(")>
+ ident(print) stringcontent('.)char(\\n)delimiter(")>
reserved(end)
ident(people) operator(=) string
ident(what_about_that_array)operator(()ident(people)operator(\))
@@ -981,7 +981,7 @@ reserved(for) ident(user) reserved(in) ident(bad_users)
reserved(end)
reserved(for) ident(var) reserved(in) constant(ENV)operator(.)ident(keys)operator(.)ident(sort)
- ident(puts) stringcontent(=)inlinedelimiter(")>
+ ident(puts) stringcontent(=)inlinedelimiter(")>
reserved(end)
reserved(for) ident(user) reserved(in) ident(all_users)
@@ -1015,7 +1015,7 @@ ident(a) operator(=) operator([) operator(.)integer(5)operator(,) integer(3) ope
reserved(for) ident(ary) reserved(in) operator([) ident(a)operator(,) ident(b) operator(])
ident(ary)operator(.)ident(collect!) operator({) operator(|)ident(v)operator(|) ident(v) operator(*) integer(7) operator(})
reserved(end)
-ident(puts) stringoperator(\))delimiter(})>content( )inlineoperator(\))delimiter(})>delimiter(")>
+ident(puts) stringoperator(\))inline_delimiter(})>content( )inlineoperator(\))inline_delimiter(})>delimiter(")>
comment(# we can mutate Strings, cool; we need a trick for the scalar)
reserved(for) ident(ary) reserved(in) operator([) operator([) ident(scalar) operator(])operator(,) ident(array)operator(,) ident(hash)operator(.)ident(values) operator(])
@@ -1035,7 +1035,7 @@ ident(unique) operator(=) ident(list)operator(.)ident(uniq)
comment(# generate a list of users logged in, removing duplicates)
ident(users) operator(=) shelloperator(.)ident(collect) operator({) operator(|)ident(l)operator(|) ident(l) operator(=)operator(~) regexpoperator(;) global_variable($1) operator(})operator(.)ident(sort)operator(.)ident(uniq)
-ident(puts)operator(()stringdelimiter(")>operator(\)) comment(# see 4.2 for commify_series)
+ident(puts)operator(()stringdelimiter(")>operator(\)) comment(# see 4.2 for commify_series)
comment(# @@PLEAC@@_4.7)
@@ -1130,7 +1130,7 @@ ident(sorted) operator(=) ident(unsorted)operator(.)ident(sort) operator({) oper
comment(# let's use the list of my own PID's)
shelloperator(.)ident(split)operator(()stringoperator(\))operator([)integer(1)operator(..)integer(-1)operator(])operator(.)
- ident(select) operator({) operator(|)ident(i)operator(|) ident(i) operator(=)operator(~) regexpoperator(])delimiter(})>delimiter(/)> operator(})operator(.)
+ ident(select) operator({) operator(|)ident(i)operator(|) ident(i) operator(=)operator(~) regexpoperator(])inline_delimiter(})>delimiter(/)> operator(})operator(.)
ident(collect) operator({) operator(|)ident(i)operator(|) ident(i)operator(.)ident(split)operator([)integer(1)operator(]) operator(})operator(.)
ident(sort) operator({) operator(|)ident(a)operator(,)ident(b)operator(|) ident(a)operator(.)ident(to_i) operator(<=>) ident(b)operator(.)ident(to_i) operator(})operator(.)ident(each) operator({) operator(|)ident(i)operator(|) ident(puts) ident(i) operator(})
ident(puts) string