-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
157 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#pragma STDC FP_CONTRACT ON | ||
; | ||
#pragma STDC FP_CONTRACT OFF | ||
; | ||
#pragma STDC FP_CONTRACT DEFAULT | ||
; | ||
#pragma STDC FENV_ACCESS ON | ||
; | ||
#pragma STDC FENV_ACCESS OFF | ||
; | ||
#pragma STDC FENV_ACCESS DEFAULT | ||
; | ||
#pragma STDC CX_LIMITED_RANGE ON | ||
; | ||
#pragma STDC CX_LIMITED_RANGE OFF | ||
; | ||
#pragma STDC CX_LIMITED_RANGE DEFAULT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef WVMCC_Lexer_DEF | ||
#define WVMCC_Lexer_DEF | ||
|
||
#include <PreProcessor.hpp> | ||
|
||
namespace WasmVM { | ||
|
||
struct Lexer { | ||
Lexer(PreProcessor &pp); | ||
|
||
std::optional<Token> get(); | ||
|
||
private: | ||
PreProcessor &pp; | ||
}; | ||
|
||
} // namespace WasmVM | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright (C) 2024 Luis Hsu | ||
// | ||
// wvmcc is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU Lesser General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// wvmcc is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU Lesser General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Lesser General Public License | ||
// along with wvmcc. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
#include <Lexer.hpp> | ||
|
||
using namespace WasmVM; | ||
|
||
Lexer::Lexer(PreProcessor &pp) : pp(pp){} | ||
|
||
std::optional<Token> Lexer::get(){ | ||
PreProcessor::PPToken token = pp.get(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters