| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /* Copyright 2025 Jonathan S. Arney | ||
| 2 | * | ||
| 3 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 4 | * you may not use this file except in compliance with the License. | ||
| 5 | * You may obtain a copy of the License at | ||
| 6 | * | ||
| 7 | * https://github.com/jarney/gyoji/blob/master/LICENSE | ||
| 8 | * | ||
| 9 | * Unless required by applicable law or agreed to in writing, software | ||
| 10 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | * See the License for the specific language governing permissions and | ||
| 13 | * limitations under the License. | ||
| 14 | */ | ||
| 15 | #include <gyoji-frontend.hpp> | ||
| 16 | #define _GYOJI_INTERNAL | ||
| 17 | #include <gyoji-frontend/lex-context.hpp> | ||
| 18 | #undef _GYOJI_INTERNAL | ||
| 19 | #include <gyoji.l.hpp> | ||
| 20 | #include <gyoji.y.hpp> | ||
| 21 | |||
| 22 | using namespace Gyoji::frontend::yacc; | ||
| 23 | |||
| 24 | 288 | LexContext::LexContext( | |
| 25 | Gyoji::frontend::namespaces::NS2Context &_ns2_context, | ||
| 26 | Gyoji::context::CompilerContext & _compiler_context, | ||
| 27 | 288 | Gyoji::misc::InputSource &_input_source) | |
| 28 | 288 | : ns2_context(_ns2_context) | |
| 29 | 288 | , input_source(_input_source) | |
| 30 | 288 | , compiler_context(_compiler_context) | |
| 31 | 288 | , line(1) | |
| 32 | 288 | , column(0) | |
| 33 | 288 | {} | |
| 34 | |||
| 35 | 288 | LexContext::~LexContext() | |
| 36 | 288 | {} | |
| 37 |