Skip to content

Commit 35114d5

Browse files
committed
introduce parameterName rule
1 parent 42e8101 commit 35114d5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/codeql/ql-language-reference/ql-language-specification.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ A QL module definition has the following syntax:
178178

179179
module ::= annotation* "module" modulename parameters? implements? "{" moduleBody "}"
180180

181-
parameters ::= "<" signatureExpr simpleId ("," signatureExpr simpleId)* ">"
181+
parameters ::= "<" signatureExpr parameterName ("," signatureExpr parameterName)* ">"
182182

183183
implements ::= "implements" moduleSignatureExpr ("," moduleSignatureExpr)*
184184

@@ -640,6 +640,7 @@ Identifiers are used in following syntactic constructs:
640640
predicateRef ::= (moduleExpr "::")? literalId
641641
signatureExpr ::= (moduleExpr "::")? simpleId ("/" Integer | arguments)?;
642642
predicateName ::= lowerId
643+
parameterName ::= simpleId
643644
varname ::= lowerId
644645
literalId ::= lowerId | atLowerId
645646

@@ -2107,7 +2108,7 @@ The complete grammar for QL is as follows:
21072108

21082109
module ::= annotation* "module" modulename parameters? implements? "{" moduleBody "}"
21092110

2110-
parameters ::= "<" signatureExpr simpleId ("," signatureExpr simpleId)* ">"
2111+
parameters ::= "<" signatureExpr parameterName ("," signatureExpr parameterName)* ">"
21112112

21122113
implements ::= "implements" moduleSignatureExpr ("," moduleSignatureExpr)*
21132114

@@ -2323,6 +2324,8 @@ The complete grammar for QL is as follows:
23232324

23242325
predicateName ::= lowerId
23252326

2327+
parameterName ::= simpleId
2328+
23262329
varname ::= lowerId
23272330

23282331
literalId ::= lowerId | atLowerId | "any" | "none"

0 commit comments

Comments
 (0)