BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
4e9f017e
Commit
4e9f017e
authored
Feb 21, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename tokens to lexemes in pipeline expressions
parent
2125d6fa
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
9 deletions
+5
-9
equals.rb
lib/gitlab/ci/pipeline/expression/equals.rb
+1
-1
lexeme.rb
lib/gitlab/ci/pipeline/expression/lexeme.rb
+1
-5
null.rb
lib/gitlab/ci/pipeline/expression/null.rb
+1
-1
string.rb
lib/gitlab/ci/pipeline/expression/string.rb
+1
-1
variable.rb
lib/gitlab/ci/pipeline/expression/variable.rb
+1
-1
No files found.
lib/gitlab/ci/pipeline/expression/equals.rb
View file @
4e9f017e
...
...
@@ -2,7 +2,7 @@ module Gitlab
module
Ci
module
Pipeline
module
Expression
class
Equals
<
Expression
::
Token
class
Equals
<
Expression
::
Lexeme
PATTERN
=
/==/
.
freeze
def
initialize
(
left
,
right
)
...
...
lib/gitlab/ci/pipeline/expression/
token
.rb
→
lib/gitlab/ci/pipeline/expression/
lexeme
.rb
View file @
4e9f017e
...
...
@@ -2,15 +2,11 @@ module Gitlab
module
Ci
module
Pipeline
module
Expression
class
Token
class
Lexeme
def
evaluate
(
**
variables
)
raise
NotImplementedError
end
def
self
.
build
(
string
)
raise
NotImplementedError
end
def
self
.
scan
(
scanner
)
scanner
.
scan
(
PATTERN
)
end
...
...
lib/gitlab/ci/pipeline/expression/null.rb
View file @
4e9f017e
...
...
@@ -2,7 +2,7 @@ module Gitlab
module
Ci
module
Pipeline
module
Expression
class
Null
<
Expression
::
Token
class
Null
<
Expression
::
Lexeme
PATTERN
=
/null/
.
freeze
def
initialize
(
value
)
...
...
lib/gitlab/ci/pipeline/expression/string.rb
View file @
4e9f017e
...
...
@@ -2,7 +2,7 @@ module Gitlab
module
Ci
module
Pipeline
module
Expression
class
String
<
Expression
::
Token
class
String
<
Expression
::
Lexeme
PATTERN
=
/("|')(?<value>.+)('|")/
.
freeze
def
initialize
(
value
)
...
...
lib/gitlab/ci/pipeline/expression/variable.rb
View file @
4e9f017e
...
...
@@ -2,7 +2,7 @@ module Gitlab
module
Ci
module
Pipeline
module
Expression
class
Equality
<
Expression
::
Token
class
Equality
<
Expression
::
Lexeme
PATTERN
=
/$(?<name>\w+)/
.
freeze
def
initialize
(
value
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment