Skip to content

Commit

Permalink
Save vscode configs
Browse files Browse the repository at this point in the history
  • Loading branch information
EricLBuehler committed Jul 5, 2023
1 parent a2ee163 commit 0d99d21
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
.vscode
merlin
Makefile
CMakeFiles
cmake_install.cmake
CMakeCache.txt
build
CMakeCache.txt
22 changes: 22 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"configurations": [
{
"name": "MinGW",
"compilerPath": "/usr/bin/g++",
"includePath": [
"${workspaceFolder}"
],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"${workspaceFolder}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
},
"cStandard": "c11",
"cppStandard": "c++23"
}
],
"version": 4
}
53 changes: 53 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"C_Cpp.default.cppStandard": "c++23",
"files.associations": {
"*.yml": "yaml",
"iostream": "cpp",
"array": "cpp",
"atomic": "cpp",
"bit": "cpp",
"*.tcc": "cpp",
"cctype": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"compare": "cpp",
"concepts": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"deque": "cpp",
"string": "cpp",
"unordered_map": "cpp",
"vector": "cpp",
"exception": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"numeric": "cpp",
"random": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"initializer_list": "cpp",
"iosfwd": "cpp",
"istream": "cpp",
"limits": "cpp",
"new": "cpp",
"numbers": "cpp",
"ostream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"typeinfo": "cpp",
"sstream": "cpp",
"fstream": "cpp",
"optional": "cpp"
},
}
4 changes: 2 additions & 2 deletions src/parser/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ class Parser {
std::optional<std::unique_ptr<Node>> atomic() {
switch (this->current.type) {
case (lexer::TokenType::INTEGER): {

return std::nullopt;
}
default: {
return std::nullopt;
}
}
return std::nullopt;
}

std::unique_ptr<Node> expr() {
Expand Down

0 comments on commit 0d99d21

Please sign in to comment.