From c6ea7a2a134a0806c1fc9dbdf99213e3c8e4b8ec Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Thu, 1 Mar 2018 12:23:27 +0100 Subject: Add a comment to expressions parser tree method --- lib/gitlab/ci/pipeline/expression/parser.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/gitlab/ci/pipeline/expression/parser.rb b/lib/gitlab/ci/pipeline/expression/parser.rb index a55e50eebde..90f94d0b763 100644 --- a/lib/gitlab/ci/pipeline/expression/parser.rb +++ b/lib/gitlab/ci/pipeline/expression/parser.rb @@ -8,6 +8,11 @@ module Gitlab @nodes = [] end + ## + # This produces a reverse descent parse tree. + # + # It currently does not support precedence of operators. + # def tree while token = @tokens.next case token.type -- cgit v1.2.1