sbsm 1.2.6 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/.travis.yml +15 -18
- data/Gemfile +8 -21
- data/History.txt +16 -0
- data/{README.txt → README.md} +16 -15
- data/Rakefile +15 -25
- data/lib/sbsm/cgi.rb +2 -1
- data/lib/sbsm/index.rb +6 -6
- data/lib/sbsm/trans_handler.rb +4 -15
- data/lib/sbsm/version.rb +3 -0
- data/sbsm.gemspec +39 -0
- data/test/suite.rb +12 -0
- data/test/test_drbserver.rb +7 -7
- data/test/test_index.rb +53 -59
- data/test/test_lookandfeel.rb +13 -15
- data/test/test_session.rb +8 -8
- data/test/test_state.rb +3 -3
- data/test/test_trans_handler.rb +26 -39
- data/test/test_user.rb +2 -2
- data/test/test_validator.rb +4 -6
- metadata +203 -87
- data/.gemtest +0 -0
- data/Gemfile.lock +0 -76
- data/lib/sbsm/flavored_uri_parser.rb +0 -48
- data/lib/sbsm/uri_parser.rb +0 -46
- data/lib/sbsm/zone_uri_parser.rb +0 -48
- data/lib/version.rb +0 -1
data/lib/sbsm/uri_parser.rb
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
require 'rockit/rockit'
|
3
|
-
module SBSM
|
4
|
-
# Parser for Uri
|
5
|
-
# created by Rockit version 0.3.8 on Wed Jul 19 18:22:17 CEST 2006
|
6
|
-
# Rockit is copyright (c) 2001 Robert Feldt, feldt@ce.chalmers.se
|
7
|
-
# and licensed under GPL
|
8
|
-
# but this parser is under LGPL
|
9
|
-
tokens = [
|
10
|
-
t1 = EofToken.new("EOF",/^(¤~~¤¤~^^~3499569544)/),
|
11
|
-
t2 = Token.new("SLASH",/^(\/)/),
|
12
|
-
t3 = Token.new("OTHER",/^([^\/]+)/),
|
13
|
-
t4 = Token.new("LANG",/^([a-z]{2})/)
|
14
|
-
]
|
15
|
-
productions = [
|
16
|
-
p1 = Production.new("Uri'".intern,[:Uri],SyntaxTreeBuilder.new("Uri'",["uri"],[])),
|
17
|
-
p2 = Production.new(:Uri,[t2, t4, t2, t3, t2, :Variables],SyntaxTreeBuilder.new("Uri",["_", "language", "_", "event", "_", "variables"],[])),
|
18
|
-
p3 = Production.new(:Uri,[t2, t4, t2, t3, t2],SyntaxTreeBuilder.new("Uri",["_", "language", "_", "event"],[])),
|
19
|
-
p4 = Production.new(:Uri,[t2, t4, t2, t3],SyntaxTreeBuilder.new("Uri",["_", "language", "_", "event"],[nil])),
|
20
|
-
p5 = Production.new(:Uri,[t2, t4, t2],SyntaxTreeBuilder.new("Uri",["_", "language"],[])),
|
21
|
-
p6 = Production.new(:Uri,[t2, t4],SyntaxTreeBuilder.new("Uri",["_", "language"],[nil])),
|
22
|
-
p7 = Production.new(:Uri,[t2],SyntaxTreeBuilder.new("Uri",["_"],[])),
|
23
|
-
p8 = Production.new(:Variables,[:Plus404380716, t2],LiftingSyntaxTreeBuilder.new(["pair"],[])),
|
24
|
-
p9 = Production.new(:Variables,[:Plus404380716],LiftingSyntaxTreeBuilder.new(["pair"],[nil])),
|
25
|
-
p10 = Production.new(:Plus404380716,[:Plus404380716, :Pair],ArrayNodeBuilder.new([1],0,nil,nil,[],true)),
|
26
|
-
p11 = Production.new(:Plus404380716,[:Pair],ArrayNodeBuilder.new([0],nil,nil,nil,[],true)),
|
27
|
-
p12 = Production.new(:Pair,[t3, t2, t3, t2],SyntaxTreeBuilder.new("Pair",["key", "_", "value"],[])),
|
28
|
-
p13 = Production.new(:Pair,[t3, t2, t3],SyntaxTreeBuilder.new("Pair",["key", "_", "value"],[nil])),
|
29
|
-
p14 = Production.new(:Pair,[t3, t2, t2],SyntaxTreeBuilder.new("Pair",["key"],[])),
|
30
|
-
p15 = Production.new(:Pair,[t3],SyntaxTreeBuilder.new("Pair",["key"],[]))
|
31
|
-
]
|
32
|
-
relations = [
|
33
|
-
|
34
|
-
]
|
35
|
-
priorities = ProductionPriorities.new(relations)
|
36
|
-
action_table = [[9, 2], [2, 1], [13, 8, 24, 1], [17, 2, 20, 1], [21, 4, 16, 1], [25, 2, 12, 1], [41, 4, 8, 1], [49, 2, 41, 4, 32, 1], [4, 1], [40, 7], [53, 2, 56, 7], [36, 7], [28, 1], [57, 2, 61, 4], [52, 7], [65, 2, 48, 7], [44, 7]]
|
37
|
-
goto_hash = {0 => {1 => 1}, 6 => {2 => 8, 3 => 7, 4 => 9}, 7 => {4 => 11}}
|
38
|
-
@@parse_table404243016 = ParseTable.new(productions,tokens,priorities,action_table,goto_hash,2,[
|
39
|
-
:REDUCE,
|
40
|
-
:SHIFT,
|
41
|
-
:ACCEPT
|
42
|
-
])
|
43
|
-
def SBSM._uri_parser
|
44
|
-
GeneralizedLrParser.new(@@parse_table404243016)
|
45
|
-
end
|
46
|
-
end
|
data/lib/sbsm/zone_uri_parser.rb
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
require 'rockit/rockit'
|
3
|
-
module SBSM
|
4
|
-
# Parser for Uri
|
5
|
-
# created by Rockit version 0.3.8 on Wed Jul 19 18:24:42 CEST 2006
|
6
|
-
# Rockit is copyright (c) 2001 Robert Feldt, feldt@ce.chalmers.se
|
7
|
-
# and licensed under GPL
|
8
|
-
# but this parser is under LGPL
|
9
|
-
tokens = [
|
10
|
-
t1 = EofToken.new("EOF",/^(¤~~¤¤~^^~3493746103)/),
|
11
|
-
t2 = Token.new("SLASH",/^(\/)/),
|
12
|
-
t3 = Token.new("OTHER",/^([^\/]+)/),
|
13
|
-
t4 = Token.new("LANG",/^([a-z]{2})/)
|
14
|
-
]
|
15
|
-
productions = [
|
16
|
-
p1 = Production.new("Uri'".intern,[:Uri],SyntaxTreeBuilder.new("Uri'",["uri"],[])),
|
17
|
-
p2 = Production.new(:Uri,[t2, t4, t2, t3, t2, t3, t2, :Variables],SyntaxTreeBuilder.new("Uri",["_", "language", "_", "zone", "_", "event", "_", "variables"],[])),
|
18
|
-
p3 = Production.new(:Uri,[t2, t4, t2, t3, t2, t3, t2],SyntaxTreeBuilder.new("Uri",["_", "language", "_", "zone", "_", "event"],[])),
|
19
|
-
p4 = Production.new(:Uri,[t2, t4, t2, t3, t2, t3],SyntaxTreeBuilder.new("Uri",["_", "language", "_", "zone", "_", "event"],[nil])),
|
20
|
-
p5 = Production.new(:Uri,[t2, t4, t2, t3, t2],SyntaxTreeBuilder.new("Uri",["_", "language", "_", "zone"],[])),
|
21
|
-
p6 = Production.new(:Uri,[t2, t4, t2, t3],SyntaxTreeBuilder.new("Uri",["_", "language", "_", "zone"],[nil])),
|
22
|
-
p7 = Production.new(:Uri,[t2, t4, t2],SyntaxTreeBuilder.new("Uri",["_", "language"],[])),
|
23
|
-
p8 = Production.new(:Uri,[t2, t4],SyntaxTreeBuilder.new("Uri",["_", "language"],[nil])),
|
24
|
-
p9 = Production.new(:Uri,[t2],SyntaxTreeBuilder.new("Uri",["_"],[])),
|
25
|
-
p10 = Production.new(:Variables,[:Plus403922760, t2],LiftingSyntaxTreeBuilder.new(["pair"],[])),
|
26
|
-
p11 = Production.new(:Variables,[:Plus403922760],LiftingSyntaxTreeBuilder.new(["pair"],[nil])),
|
27
|
-
p12 = Production.new(:Plus403922760,[:Plus403922760, :Pair],ArrayNodeBuilder.new([1],0,nil,nil,[],true)),
|
28
|
-
p13 = Production.new(:Plus403922760,[:Pair],ArrayNodeBuilder.new([0],nil,nil,nil,[],true)),
|
29
|
-
p14 = Production.new(:Pair,[t3, t2, t3, t2],SyntaxTreeBuilder.new("Pair",["key", "_", "value"],[])),
|
30
|
-
p15 = Production.new(:Pair,[t3, t2, t3],SyntaxTreeBuilder.new("Pair",["key", "_", "value"],[nil])),
|
31
|
-
p16 = Production.new(:Pair,[t3, t2, t2],SyntaxTreeBuilder.new("Pair",["key"],[])),
|
32
|
-
p17 = Production.new(:Pair,[t3],SyntaxTreeBuilder.new("Pair",["key"],[]))
|
33
|
-
]
|
34
|
-
relations = [
|
35
|
-
|
36
|
-
]
|
37
|
-
priorities = ProductionPriorities.new(relations)
|
38
|
-
action_table = [[9, 2], [2, 1], [13, 8, 32, 1], [17, 2, 28, 1], [21, 4, 24, 1], [25, 2, 20, 1], [29, 4, 16, 1], [33, 2, 12, 1], [49, 4, 8, 1], [53, 2, 49, 4, 40, 1], [4, 1], [48, 7], [61, 2, 64, 7], [36, 1], [44, 7], [65, 2, 69, 4], [60, 7], [73, 2, 56, 7], [52, 7]]
|
39
|
-
goto_hash = {0 => {1 => 1}, 8 => {2 => 10, 3 => 9, 4 => 11}, 9 => {4 => 14}}
|
40
|
-
@@parse_table403739556 = ParseTable.new(productions,tokens,priorities,action_table,goto_hash,2,[
|
41
|
-
:REDUCE,
|
42
|
-
:SHIFT,
|
43
|
-
:ACCEPT
|
44
|
-
])
|
45
|
-
def SBSM._zone_uri_parser
|
46
|
-
GeneralizedLrParser.new(@@parse_table403739556)
|
47
|
-
end
|
48
|
-
end
|
data/lib/version.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
VERSION = '1.2.6'
|