11/*
2- * Copyright 2025 the original author or authors.
2+ * Copyright 2026 the original author or authors.
33 * <p>
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16- // Generated from ~/git/rewrite/ rewrite-hcl/src/main/antlr/HCLLexer.g4 by ANTLR 4.13.2
16+ // Generated from rewrite-hcl/src/main/antlr/HCLLexer.g4 by ANTLR 4.13.2
1717package org .openrewrite .hcl .internal .grammar ;
1818import java .util .Stack ;
1919import org .antlr .v4 .runtime .Lexer ;
2020import org .antlr .v4 .runtime .CharStream ;
21+ import org .antlr .v4 .runtime .Token ;
22+ import org .antlr .v4 .runtime .TokenStream ;
2123import org .antlr .v4 .runtime .*;
2224import org .antlr .v4 .runtime .atn .*;
2325import org .antlr .v4 .runtime .dfa .DFA ;
@@ -31,14 +33,14 @@ public class HCLLexer extends Lexer {
3133 protected static final PredictionContextCache _sharedContextCache =
3234 new PredictionContextCache ();
3335 public static final int
34- FOR_BRACE =1 , FOR_BRACK =2 , IF =3 , IN =4 , BooleanLiteral =5 , NULL =6 , LBRACE =7 ,
35- RBRACE =8 , ASSIGN =9 , Identifier =10 , WS =11 , COMMENT =12 , LINE_COMMENT =13 ,
36- NEWLINE =14 , NumericLiteral =15 , QUOTE =16 , HEREDOC_START =17 , PLUS =18 , AND =19 ,
37- EQ =20 , LT =21 , DOUBLE_COLON =22 , COLON =23 , LBRACK =24 , LPAREN =25 , MINUS =26 ,
38- OR =27 , NEQ =28 , GT =29 , QUESTION =30 , RBRACK =31 , RPAREN =32 , MUL =33 , NOT =34 ,
39- LEQ =35 , DOT =36 , DIV =37 , GEQ =38 , ARROW =39 , COMMA =40 , MOD =41 , ELLIPSIS =42 ,
40- TILDE =43 , TEMPLATE_INTERPOLATION_START =44 , TemplateStringLiteral =45 , TemplateStringLiteralChar =46 ,
41- HP_WS =47 , HP_COMMENT =48 , HP_LINE_COMMENT =49 , HTemplateLiteral =50 , HTemplateLiteralChar =51 ,
36+ FOR_BRACE =1 , FOR_BRACK =2 , IF =3 , IN =4 , BooleanLiteral =5 , NULL =6 , LBRACE =7 ,
37+ RBRACE =8 , ASSIGN =9 , Identifier =10 , WS =11 , COMMENT =12 , LINE_COMMENT =13 ,
38+ NEWLINE =14 , NumericLiteral =15 , QUOTE =16 , HEREDOC_START =17 , PLUS =18 , AND =19 ,
39+ EQ =20 , LT =21 , DOUBLE_COLON =22 , COLON =23 , LBRACK =24 , LPAREN =25 , MINUS =26 ,
40+ OR =27 , NEQ =28 , GT =29 , QUESTION =30 , RBRACK =31 , RPAREN =32 , MUL =33 , NOT =34 ,
41+ LEQ =35 , DOT =36 , DIV =37 , GEQ =38 , ARROW =39 , COMMA =40 , MOD =41 , ELLIPSIS =42 ,
42+ TILDE =43 , TEMPLATE_INTERPOLATION_START =44 , TemplateStringLiteral =45 , TemplateStringLiteralChar =46 ,
43+ HP_WS =47 , HP_COMMENT =48 , HP_LINE_COMMENT =49 , HTemplateLiteral =50 , HTemplateLiteralChar =51 ,
4244 H_NEWLINE =52 ;
4345 public static final int
4446 TEMPLATE =1 , HEREDOC_PREAMBLE =2 , HEREDOC =3 ;
@@ -52,41 +54,41 @@ public class HCLLexer extends Lexer {
5254
5355 private static String [] makeRuleNames () {
5456 return new String [] {
55- "FOR_BRACE" , "FOR_BRACK" , "IF" , "IN" , "BooleanLiteral" , "NULL" , "LBRACE" ,
56- "RBRACE" , "ASSIGN" , "StringLiteralChar" , "Identifier" , "WS" , "COMMENT" ,
57- "LINE_COMMENT" , "NEWLINE" , "LetterOrDigit" , "Letter" , "EscapeSequence" ,
58- "HexDigit" , "NumericLiteral" , "ExponentPart" , "QUOTE" , "HEREDOC_START" ,
59- "PLUS" , "AND" , "EQ" , "LT" , "DOUBLE_COLON" , "COLON" , "LBRACK" , "LPAREN" ,
60- "MINUS" , "OR" , "NEQ" , "GT" , "QUESTION" , "RBRACK" , "RPAREN" , "MUL" , "NOT" ,
61- "LEQ" , "DOT" , "DIV" , "GEQ" , "ARROW" , "COMMA" , "MOD" , "ELLIPSIS" , "TILDE" ,
62- "TEMPLATE_INTERPOLATION_START" , "TemplateStringLiteral" , "TemplateStringLiteralChar" ,
63- "END_QUOTE" , "HP_NEWLINE" , "HP_WS" , "HP_COMMENT" , "HP_LINE_COMMENT" ,
64- "HPIdentifier" , "H_NEWLINE" , "H_TEMPLATE_INTERPOLATION_START" , "HTemplateLiteral" ,
57+ "FOR_BRACE" , "FOR_BRACK" , "IF" , "IN" , "BooleanLiteral" , "NULL" , "LBRACE" ,
58+ "RBRACE" , "ASSIGN" , "StringLiteralChar" , "Identifier" , "WS" , "COMMENT" ,
59+ "LINE_COMMENT" , "NEWLINE" , "LetterOrDigit" , "Letter" , "EscapeSequence" ,
60+ "HexDigit" , "NumericLiteral" , "ExponentPart" , "QUOTE" , "HEREDOC_START" ,
61+ "PLUS" , "AND" , "EQ" , "LT" , "DOUBLE_COLON" , "COLON" , "LBRACK" , "LPAREN" ,
62+ "MINUS" , "OR" , "NEQ" , "GT" , "QUESTION" , "RBRACK" , "RPAREN" , "MUL" , "NOT" ,
63+ "LEQ" , "DOT" , "DIV" , "GEQ" , "ARROW" , "COMMA" , "MOD" , "ELLIPSIS" , "TILDE" ,
64+ "TEMPLATE_INTERPOLATION_START" , "TemplateStringLiteral" , "TemplateStringLiteralChar" ,
65+ "END_QUOTE" , "HP_NEWLINE" , "HP_WS" , "HP_COMMENT" , "HP_LINE_COMMENT" ,
66+ "HPIdentifier" , "H_NEWLINE" , "H_TEMPLATE_INTERPOLATION_START" , "HTemplateLiteral" ,
6567 "HTemplateLiteralChar"
6668 };
6769 }
6870 public static final String [] ruleNames = makeRuleNames ();
6971
7072 private static String [] makeLiteralNames () {
7173 return new String [] {
72- null , null , null , "'if'" , "'in'" , null , "'null'" , "'{'" , "'}'" , "'='" ,
73- null , null , null , null , null , null , null , null , "'+'" , "'&&'" , "'=='" ,
74- "'<'" , "'::'" , "':'" , "'['" , "'('" , "'-'" , "'||'" , "'!='" , "'>'" , "'?'" ,
75- "']'" , "')'" , "'*'" , "'!'" , "'<='" , "'.'" , "'/'" , "'>='" , "'=>'" , "','" ,
76- "'%'" , "'...'" , "'~'" , null , null , null , null , null , null , null , null ,
74+ null , null , null , "'if'" , "'in'" , null , "'null'" , "'{'" , "'}'" , "'='" ,
75+ null , null , null , null , null , null , null , null , "'+'" , "'&&'" , "'=='" ,
76+ "'<'" , "'::'" , "':'" , "'['" , "'('" , "'-'" , "'||'" , "'!='" , "'>'" , "'?'" ,
77+ "']'" , "')'" , "'*'" , "'!'" , "'<='" , "'.'" , "'/'" , "'>='" , "'=>'" , "','" ,
78+ "'%'" , "'...'" , "'~'" , null , null , null , null , null , null , null , null ,
7779 "'\\ n'"
7880 };
7981 }
8082 private static final String [] _LITERAL_NAMES = makeLiteralNames ();
8183 private static String [] makeSymbolicNames () {
8284 return new String [] {
83- null , "FOR_BRACE" , "FOR_BRACK" , "IF" , "IN" , "BooleanLiteral" , "NULL" ,
84- "LBRACE" , "RBRACE" , "ASSIGN" , "Identifier" , "WS" , "COMMENT" , "LINE_COMMENT" ,
85- "NEWLINE" , "NumericLiteral" , "QUOTE" , "HEREDOC_START" , "PLUS" , "AND" ,
86- "EQ" , "LT" , "DOUBLE_COLON" , "COLON" , "LBRACK" , "LPAREN" , "MINUS" , "OR" ,
87- "NEQ" , "GT" , "QUESTION" , "RBRACK" , "RPAREN" , "MUL" , "NOT" , "LEQ" , "DOT" ,
88- "DIV" , "GEQ" , "ARROW" , "COMMA" , "MOD" , "ELLIPSIS" , "TILDE" , "TEMPLATE_INTERPOLATION_START" ,
89- "TemplateStringLiteral" , "TemplateStringLiteralChar" , "HP_WS" , "HP_COMMENT" ,
85+ null , "FOR_BRACE" , "FOR_BRACK" , "IF" , "IN" , "BooleanLiteral" , "NULL" ,
86+ "LBRACE" , "RBRACE" , "ASSIGN" , "Identifier" , "WS" , "COMMENT" , "LINE_COMMENT" ,
87+ "NEWLINE" , "NumericLiteral" , "QUOTE" , "HEREDOC_START" , "PLUS" , "AND" ,
88+ "EQ" , "LT" , "DOUBLE_COLON" , "COLON" , "LBRACK" , "LPAREN" , "MINUS" , "OR" ,
89+ "NEQ" , "GT" , "QUESTION" , "RBRACK" , "RPAREN" , "MUL" , "NOT" , "LEQ" , "DOT" ,
90+ "DIV" , "GEQ" , "ARROW" , "COMMA" , "MOD" , "ELLIPSIS" , "TILDE" , "TEMPLATE_INTERPOLATION_START" ,
91+ "TemplateStringLiteral" , "TemplateStringLiteralChar" , "HP_WS" , "HP_COMMENT" ,
9092 "HP_LINE_COMMENT" , "HTemplateLiteral" , "HTemplateLiteralChar" , "H_NEWLINE"
9193 };
9294 }
@@ -596,4 +598,4 @@ private boolean TemplateStringLiteralChar_sempred(RuleContext _localctx, int pre
596598 _decisionToDFA [i ] = new DFA (_ATN .getDecisionState (i ), i );
597599 }
598600 }
599- }
601+ }
0 commit comments