Module: SFRP::Flat
- Defined in:
- lib/sfrp/flat/dsl.rb,
lib/sfrp/flat/set.rb,
lib/sfrp/flat/elements.rb,
lib/sfrp/flat/exception.rb,
lib/sfrp/flat/expression.rb
Defined Under Namespace
Classes: DuplicatedVariableError, FuncCallExp, FuncTypeAnnotation, Function, MatchExp, Node, NodeInvalidLastReferrenceError, NodeRefExp, NodeRefInIllegalPositionError, Set, TConst, TypeAnnotationType, TypeAnnotationVar, UnboundLocalVariableError, VConst, VConstCallExp, VarRefExp
Instance Method Summary
collapse
-
#call_e(func_str, args, sp = nil) ⇒ Object
-
#ft(ret_t, arg_ts) ⇒ Object
-
#nr_e(node_str, last, sp = nil) ⇒ Object
-
#t(tconst_str, args, sp = nil) ⇒ Object
-
#tv(var_str, sp = nil) ⇒ Object
-
#v_e(var_str, sp = nil) ⇒ Object
-
#vc_call_e(vconst_str, args, sp = nil) ⇒ Object
Instance Method Details
#call_e(func_str, args, sp = nil) ⇒ Object
25
26
27
|
# File 'lib/sfrp/flat/dsl.rb', line 25
def call_e(func_str, args, sp = nil)
FuncCallExp.new(func_str, args, sp)
end
|
#ft(ret_t, arg_ts) ⇒ Object
13
14
15
|
# File 'lib/sfrp/flat/dsl.rb', line 13
def ft(ret_t, arg_ts)
FuncTypeAnnotation.new(ret_t, arg_ts)
end
|
#nr_e(node_str, last, sp = nil) ⇒ Object
21
22
23
|
# File 'lib/sfrp/flat/dsl.rb', line 21
def nr_e(node_str, last, sp = nil)
NodeRefExp.new(node_str, last, sp)
end
|
#t(tconst_str, args, sp = nil) ⇒ Object
5
6
7
|
# File 'lib/sfrp/flat/dsl.rb', line 5
def t(tconst_str, args, sp = nil)
TypeAnnotationType.new(tconst_str, args, sp)
end
|
#tv(var_str, sp = nil) ⇒ Object
9
10
11
|
# File 'lib/sfrp/flat/dsl.rb', line 9
def tv(var_str, sp = nil)
TypeAnnotationVar.new(var_str, sp)
end
|
#v_e(var_str, sp = nil) ⇒ Object
17
18
19
|
# File 'lib/sfrp/flat/dsl.rb', line 17
def v_e(var_str, sp = nil)
VarRefExp.new(var_str, sp)
end
|
#vc_call_e(vconst_str, args, sp = nil) ⇒ Object
29
30
31
|
# File 'lib/sfrp/flat/dsl.rb', line 29
def vc_call_e(vconst_str, args, sp = nil)
VConstCallExp.new(vconst_str, args, sp)
end
|