From 9a6b6c0e32e54ea72c897b759fde9a7d277f0088 Mon Sep 17 00:00:00 2001 From: wesuRage Date: Wed, 11 Dec 2024 15:26:22 -0300 Subject: [PATCH] feat(functions): first function test successful --- .vscode/c_cpp_properties.json | 15 ----- .vscode/settings.json | 106 ---------------------------------- examples/a.glx | 8 ++- 3 files changed, 7 insertions(+), 122 deletions(-) delete mode 100644 .vscode/c_cpp_properties.json delete mode 100644 .vscode/settings.json diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json deleted file mode 100644 index 64d3f90..0000000 --- a/.vscode/c_cpp_properties.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "configurations": [ - { - "name": "Linux", - "includePath": [ - "${workspaceFolder}/**" - ], - "defines": [], - "cStandard": "c17", - "cppStandard": "c++17", - "intelliSenseMode": "linux-clang-x64" - } - ], - "version": 4 -} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 4eb94ea..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "files.associations": { - "parse_multiplicative_expr.h": "c", - "parse_import_stmt.h": "c", - "parse_package_stmt.h": "c", - "parse_stmt.h": "c", - "parse_assignment_expr.h": "c", - "parse_additive_expr.h": "c", - "definitions.h": "c", - "stdio.h": "c", - "string.h": "c", - "parse_object_expr.h": "c", - "stdlib.h": "c", - "visited.h": "c", - "print_program.h": "c", - "print_assignment.h": "c", - "print_identifier.h": "c", - "print_numeric_literal.h": "c", - "print_object.h": "c", - "print_pre_decrement.h": "c", - "print_binary_expr.h": "c", - "print_ast.h": "c", - "print_package.h": "c", - "freetokens.h": "c", - "typeinfo": "c", - "text_encoding": "c", - "parse_logical_not_expr.h": "c", - "core.h": "c", - "parse_equality_expr.h": "c", - "parse_primary_expr.h": "c", - "print_indent.h": "c", - "print_import.h": "c", - "print_property.h": "c", - "print_pre_increment.h": "c", - "parse_call_expr.h": "c", - "parse_call_member_expr.h": "c", - "array": "cpp", - "atomic": "cpp", - "bit": "cpp", - "*.tcc": "cpp", - "bitset": "cpp", - "cctype": "cpp", - "charconv": "cpp", - "clocale": "cpp", - "cmath": "cpp", - "compare": "cpp", - "concepts": "cpp", - "cstdarg": "cpp", - "cstddef": "cpp", - "cstdint": "cpp", - "cstdio": "cpp", - "cstdlib": "cpp", - "cstring": "cpp", - "ctime": "cpp", - "cwchar": "cpp", - "cwctype": "cpp", - "deque": "cpp", - "set": "cpp", - "string": "cpp", - "unordered_map": "cpp", - "vector": "cpp", - "exception": "cpp", - "algorithm": "cpp", - "functional": "cpp", - "iterator": "cpp", - "memory": "cpp", - "memory_resource": "cpp", - "numeric": "cpp", - "optional": "cpp", - "random": "cpp", - "string_view": "cpp", - "system_error": "cpp", - "tuple": "cpp", - "type_traits": "cpp", - "utility": "cpp", - "format": "cpp", - "initializer_list": "cpp", - "iosfwd": "cpp", - "iostream": "cpp", - "istream": "cpp", - "limits": "cpp", - "new": "cpp", - "numbers": "cpp", - "ostream": "cpp", - "span": "cpp", - "stdexcept": "cpp", - "streambuf": "cpp", - "cinttypes": "cpp", - "variant": "cpp", - "list": "cpp", - "map": "cpp", - "parse_type.h": "c", - "print_for.h": "c", - "print_type.h": "c", - "parse_array_access_expr.h": "c", - "parse_ternary_expr.h": "c", - "chrono": "cpp", - "ratio": "cpp", - "iomanip": "cpp", - "sstream": "cpp", - "gettokentypename.h": "c", - "print_string.h": "c", - "print_call.h": "c" - }, - "C_Cpp.errorSquiggles": "disabled" -} \ No newline at end of file diff --git a/examples/a.glx b/examples/a.glx index 92c50ba..ca66200 100644 --- a/examples/a.glx +++ b/examples/a.glx @@ -1 +1,7 @@ -string oi := makonha == 3 ? "true" : "false"; \ No newline at end of file +def my_return( int i) -> int: + return i; +end; + +def main( ) -> int: + return my_return( 10) ; +end;