Class: Hilbert::Lexer::Tokens::Util
- Inherits:
-
Object
- Object
- Hilbert::Lexer::Tokens::Util
- Defined in:
- lib/hilbert/lexer/tokens.rb
Overview
TODO: what is better
Class Method Summary collapse
Class Method Details
.func_call(args) ⇒ Object
95 96 97 |
# File 'lib/hilbert/lexer/tokens.rb', line 95 def self.func_call(args) /#{FUNCV}#{LPRN}#{ANYSP}#{args}#{ANYSP}#{RPRN}/ end |
.string_out(str, partition) ⇒ Object
91 92 93 |
# File 'lib/hilbert/lexer/tokens.rb', line 91 def self.string_out(str, partition) /#{ANYSP}#{str}(?:#{ANYSP}#{partition}#{ANYSP}#{str})*#{ANYSP}/ end |