Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ezr² RE v1.0.0 #3

Draft
wants to merge 115 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
3289659
ezrSquared Rewrite - Part 1
Uralstech May 10, 2023
fa425c5
Updated gitignore!
Uralstech May 10, 2023
350b565
Added the new Parser!
Uralstech Sep 12, 2023
7b0a83c
Lots of bugfixes and a better shell!
Uralstech Sep 12, 2023
ba46e76
More bugfixes, updated tests and minor improvements!
Uralstech Sep 12, 2023
f781945
Spacing of error tracebacks should now be consistent.
Uralstech Sep 12, 2023
13b89de
Removed "Graphics" folder.
Uralstech Sep 12, 2023
944c3ba
Added 'graphics' folder.
Uralstech Sep 12, 2023
ee3a886
Fixed intended usage message in EzrShell.cs.
Uralstech Sep 13, 2023
faf0028
Updated EzrLexer, EzrParser and EzrCommon for better performance! Als…
Uralstech Sep 13, 2023
34670e2
Removed PeekNext method in EzrLexer.
Uralstech Sep 13, 2023
a144603
It's faster now!
Uralstech Sep 14, 2023
1898f0b
More performance!
Uralstech Sep 15, 2023
69b4368
Updated EzrShell.
Uralstech Sep 15, 2023
277f547
Update README.md
Uralstech Feb 12, 2024
6403ff1
Update README.md
Uralstech Feb 24, 2024
8b4ef26
ezr² RE (REwrite) v0.1.0
Uralstech Aug 4, 2024
c3d2c4b
Merge branch 'ezrSquared-re' of https://github.com/Uralstech/ezrSquar…
Uralstech Aug 4, 2024
10a3e81
Fixed README
Uralstech Aug 4, 2024
4bf3de2
Updated LICENSE and README.
Uralstech Aug 4, 2024
0f0139e
Added ezr² RE graphics
Uralstech Aug 5, 2024
75dd78f
ezr² v0.1.1
Uralstech Aug 5, 2024
69e12e9
ezr² v0.1.2
Uralstech Aug 6, 2024
c811766
Fixed GitHub pages action and updated dependencies.
Uralstech Aug 6, 2024
e676eae
Updated website.
Uralstech Aug 6, 2024
dc43304
Fixed formatting, removed unused imports.
Uralstech Aug 7, 2024
64d5ede
ezr² v0.2.0
Uralstech Aug 7, 2024
db98d08
Updated changelog.
Uralstech Aug 7, 2024
652b073
Revamped executables.
Uralstech Aug 8, 2024
fb53fc0
Fixed EzrSharpCompatibilityWrapper.
Uralstech Aug 8, 2024
e7ccfae
Fixes related to contexts.
Uralstech Aug 8, 2024
26816c9
Updated documentation.
Uralstech Aug 8, 2024
64f695e
Fixed inconsistencies regarding EzrSharpCompatibilityObjectInstance a…
Uralstech Aug 8, 2024
8926c33
Updated even more documentation.
Uralstech Aug 8, 2024
e0b9fc4
Updated documentation.
Uralstech Aug 8, 2024
01c3e39
Improved wrappers.
Uralstech Aug 9, 2024
acea738
Added missing imports.
Uralstech Aug 9, 2024
044e3e9
Updated EzrObject constructor.
Uralstech Aug 11, 2024
c523a3f
Fixed Task return type for SharpAutoCompatibilityWrapper wrapped meth…
Uralstech Aug 11, 2024
4cd8147
ezr² v0.3.0
Uralstech Aug 13, 2024
188c69f
ezr² v0.3.1
Uralstech Aug 13, 2024
53e454f
ezr² RE v0.4.0
Uralstech Sep 27, 2024
adb630a
Minor constructor changes.
Uralstech Oct 6, 2024
5999ddb
Moved IMutable<T> to its own file, fixed cast in Context.
Uralstech Oct 30, 2024
4b91266
Added the for-each loop!
Uralstech Oct 31, 2024
7121a6f
Added iteration support for strings and charlists.
Uralstech Oct 31, 2024
2f65b3a
ezr² v0.5.0
Uralstech Oct 31, 2024
e6b60d5
Implemented optional extra positional parameters for methods.
Uralstech Oct 31, 2024
5d9b9fa
ezr² v0.6.0
Uralstech Oct 31, 2024
c4243a4
Grammar..
Uralstech Oct 31, 2024
dca483a
Added slightly jank implementation of EPAs for source wrappers.
Uralstech Oct 31, 2024
091f30a
ezr² v0.7.0
Uralstech Oct 31, 2024
5fe8679
Code analysis and formatting fixes.
Uralstech Oct 31, 2024
6c80003
Updated docs for "show" function.
Uralstech Oct 31, 2024
1885fa9
Fixed documentation reference.
Uralstech Oct 31, 2024
1c4b705
Added some built in functions for types.
Uralstech Nov 1, 2024
1218337
ezr² v0.8.0
Uralstech Nov 1, 2024
bd5a21b
Updated README.md.
Uralstech Nov 1, 2024
97c2833
Updated changelog
Uralstech Nov 1, 2024
b6946ac
ezr² v0.8.1
Uralstech Nov 1, 2024
d161fb8
Updated index.
Uralstech Nov 2, 2024
0329402
Fixed downloads.
Uralstech Nov 2, 2024
1b48bf1
ezr² v0.8.2
Uralstech Nov 2, 2024
a3cbd41
Added snupkg file build support.
Uralstech Nov 2, 2024
c5bbb92
ezr² v0.8.3
Uralstech Nov 2, 2024
3877ce8
ezr² v0.8.4
Uralstech Nov 2, 2024
15a0d76
ezr² v0.8.5
Uralstech Nov 2, 2024
0394832
MASSIVE overhaul for the wrapper systems.
Uralstech Nov 3, 2024
5ed4199
Bugfixes and improvements for the previous commit.
Uralstech Nov 3, 2024
27d0075
Overhaul of error types and `Utils` class.
Uralstech Nov 3, 2024
c11981b
Made `EzrSharpCompatibilityWrapper` more generic.
Uralstech Nov 4, 2024
ce5ecc7
Code analysis.
Uralstech Nov 4, 2024
ac48361
ezr² v0.9.0
Uralstech Nov 4, 2024
dd9951f
Made dictionaries iterable and more generic.
Uralstech Nov 4, 2024
59bb7a5
Improved `RuntimeEzrObjectDictionary` error messages.
Uralstech Nov 5, 2024
23d020d
Made for-each loops work better for dictionaries.
Uralstech Nov 6, 2024
d142b36
Fixed list reference registration issues.
Uralstech Nov 6, 2024
fae2e10
Fixed dictionary reference registration issues.
Uralstech Nov 6, 2024
938c725
ezr² v0.10.0
Uralstech Nov 6, 2024
f4c5b2f
Added array support for wrappers.
Uralstech Nov 7, 2024
0584681
Fixed "empty parameter name" bug.
Uralstech Nov 7, 2024
a8d3cf8
ezr² v0.11.0
Uralstech Nov 8, 2024
39e58db
Bugfixes for wrappers.
Uralstech Nov 8, 2024
697750f
ezr² RE v0.11.1
Uralstech Nov 8, 2024
62af557
General improvements:
Uralstech Nov 9, 2024
2015fbd
ezr² v0.11.2
Uralstech Nov 9, 2024
8d980e3
Code cleanup.
Uralstech Nov 9, 2024
ef941d6
Added some new built-ins.
Uralstech Nov 10, 2024
30dabe7
Added signing for ezr² and removed `CsealAttribute`.
Uralstech Nov 11, 2024
da46a74
Updated actions.
Uralstech Nov 12, 2024
a72a80e
.NET 9 and some minor improvements
Uralstech Nov 18, 2024
3027083
Update pages-upload-action.yml
Uralstech Nov 18, 2024
8a472b0
Update pages-upload-action.yml
Uralstech Nov 18, 2024
f2849eb
ezr² v0.11.3
Uralstech Nov 29, 2024
7dcd13b
Merge branch 'ezrSquared-re' of https://github.com/Uralstech/ezrSquar…
Uralstech Nov 29, 2024
1783a73
Updated index.
Uralstech Nov 29, 2024
9216608
Added documentation download links.
Uralstech Nov 29, 2024
efc6e59
General improvements and bugfixes.
Uralstech Dec 17, 2024
68d032c
Improved wrappers.
Uralstech Dec 17, 2024
0980766
Added special handling for statements instead of just being arrays.
Uralstech Dec 17, 2024
2ed8ffa
Code cleanup.
Uralstech Dec 17, 2024
e3d629e
Wrapper unification part 1.
Uralstech Dec 19, 2024
c2b908a
Wrapper unification part 2.
Uralstech Dec 20, 2024
f932e44
Wrapper unification part 3.
Uralstech Dec 20, 2024
7ee60fe
Updated docs and CodeExecutor.
Uralstech Dec 20, 2024
31cbb72
Fixed docs in EzrBuiltinFunctions.
Uralstech Dec 20, 2024
67528e2
Updated docs.
Uralstech Dec 20, 2024
8373cc5
Improved converters for wrappers, and updated constraints.
Uralstech Dec 21, 2024
0d8cf04
Updated docs.
Uralstech Dec 21, 2024
a1faf5b
Performance update.
Uralstech Dec 22, 2024
50e7704
Position is a struct and
Uralstech Dec 24, 2024
5488fec
Improved lexer performance.
Uralstech Dec 24, 2024
68877eb
Lexer refactoring.
Uralstech Dec 24, 2024
c2d09d5
All nodes are records now!
Uralstech Dec 24, 2024
b97e4fb
Fixed lexer.
Uralstech Dec 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
267 changes: 267 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,267 @@
# Remove the line below if you want to inherit .editorconfig settings from higher directories
root = true

# C# files
[*.cs]

#### Core EditorConfig Options ####

# Indentation and spacing
indent_size = 4
indent_style = space
tab_width = 4

# New line preferences
end_of_line = crlf
insert_final_newline = false

#### .NET Coding Conventions ####

# Organize usings
dotnet_separate_import_directive_groups = false
dotnet_sort_system_directives_first = false
file_header_template = unset

# this. and Me. preferences
dotnet_style_qualification_for_event = false:warning
dotnet_style_qualification_for_field = false
dotnet_style_qualification_for_method = false:warning
dotnet_style_qualification_for_property = false:warning

# Language keywords vs BCL types preferences
dotnet_style_predefined_type_for_locals_parameters_members = true:warning
dotnet_style_predefined_type_for_member_access = true:warning

# Parentheses preferences
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:warning
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:warning
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:warning
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:warning

# Modifier preferences
dotnet_style_require_accessibility_modifiers = for_non_interface_members

# Expression-level preferences
dotnet_style_coalesce_expression = true:warning
dotnet_style_collection_initializer = true:warning
dotnet_style_explicit_tuple_names = true:warning
dotnet_style_namespace_match_folder = false
dotnet_style_null_propagation = true:warning
dotnet_style_object_initializer = true:warning
dotnet_style_operator_placement_when_wrapping = beginning_of_line
dotnet_style_prefer_auto_properties = true:warning
dotnet_style_prefer_compound_assignment = true:warning
dotnet_style_prefer_conditional_expression_over_assignment = true:warning
dotnet_style_prefer_conditional_expression_over_return = true:warning
dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed
dotnet_style_prefer_inferred_anonymous_type_member_names = true:warning
dotnet_style_prefer_inferred_tuple_names = true:warning
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
dotnet_style_prefer_simplified_boolean_expressions = true:warning
dotnet_style_prefer_simplified_interpolation = true

# Field preferences
dotnet_style_readonly_field = true:warning

# Parameter preferences
dotnet_code_quality_unused_parameters = all:warning

# Suppression preferences
dotnet_remove_unnecessary_suppression_exclusions = none

# New line preferences
dotnet_style_allow_multiple_blank_lines_experimental = false
dotnet_style_allow_statement_immediately_after_block_experimental = false

#### C# Coding Conventions ####

# var preferences
csharp_style_var_elsewhere = false:warning
csharp_style_var_for_built_in_types = false:warning
csharp_style_var_when_type_is_apparent = false:warning

# Expression-bodied members
csharp_style_expression_bodied_accessors = true:warning
csharp_style_expression_bodied_constructors = false:warning
csharp_style_expression_bodied_indexers = true:warning
csharp_style_expression_bodied_lambdas = true:warning
csharp_style_expression_bodied_local_functions = false:warning
csharp_style_expression_bodied_methods = false:warning
csharp_style_expression_bodied_operators = false:warning
csharp_style_expression_bodied_properties = true:warning

# Pattern matching preferences
csharp_style_pattern_matching_over_as_with_null_check = true:warning
csharp_style_pattern_matching_over_is_with_cast_check = true:warning
csharp_style_prefer_extended_property_pattern = true
csharp_style_prefer_not_pattern = true:warning
csharp_style_prefer_pattern_matching = true:warning
csharp_style_prefer_switch_expression = true:warning

# Null-checking preferences
csharp_style_conditional_delegate_call = true:warning

# Modifier preferences
csharp_prefer_static_local_function = true:warning
csharp_preferred_modifier_order = public,private,protected,internal,file,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async
csharp_style_prefer_readonly_struct = true:warning
csharp_style_prefer_readonly_struct_member = true

# Code-block preferences
csharp_prefer_braces = false:warning
csharp_prefer_simple_using_statement = true:warning
csharp_style_namespace_declarations = file_scoped:warning
csharp_style_prefer_method_group_conversion = true:warning
csharp_style_prefer_primary_constructors = true
csharp_style_prefer_top_level_statements = true:warning

# Expression-level preferences
csharp_prefer_simple_default_expression = true:warning
csharp_style_deconstructed_variable_declaration = true:warning
csharp_style_implicit_object_creation_when_type_is_apparent = true:warning
csharp_style_inlined_variable_declaration = true:warning
csharp_style_prefer_index_operator = true:warning
csharp_style_prefer_local_over_anonymous_function = true:warning
csharp_style_prefer_null_check_over_type_check = true:warning
csharp_style_prefer_range_operator = true:warning
csharp_style_prefer_tuple_swap = true:warning
csharp_style_prefer_utf8_string_literals = true
csharp_style_throw_expression = true:warning
dotnet_diagnostic.IDE0059.severity = none # csharp_style_unused_value_assignment_preference = discard_variable
dotnet_diagnostic.IDE0058.severity = none # csharp_style_unused_value_expression_statement_preference = discard_variable:suggestion

# 'using' directive preferences
dotnet_diagnostic.IDE0065.severity = none # csharp_using_directive_placement = outside_namespace

# New line preferences
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = false
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false
csharp_style_allow_embedded_statements_on_same_line_experimental = false:warning

#### C# Formatting Rules ####

# New line preferences
csharp_new_line_before_catch = true
csharp_new_line_before_else = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_open_brace = all
csharp_new_line_between_query_expression_clauses = true

# Indentation preferences
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents = true
csharp_indent_case_contents_when_block = true
csharp_indent_labels = one_less_than_current
csharp_indent_switch_labels = true

# Space preferences
csharp_space_after_cast = false
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_after_comma = true
csharp_space_after_dot = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_after_semicolon_in_for_statement = true
csharp_space_around_binary_operators = before_and_after
csharp_space_around_declaration_statements = false
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_before_comma = false
csharp_space_before_dot = false
csharp_space_before_open_square_brackets = false
csharp_space_before_semicolon_in_for_statement = false
csharp_space_between_empty_square_brackets = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_space_between_square_brackets = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true

# Other preferences
dotnet_style_prefer_collection_expression = true:warning

#### Naming styles ####

# Naming rules

dotnet_naming_rule.interface_should_be_begins_with_i.severity = warning
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i

dotnet_naming_rule.types_should_be_pascal_case.severity = warning
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case

dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = warning
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case

dotnet_naming_rule.constant_should_be_pascal_case.severity = warning
dotnet_naming_rule.constant_should_be_pascal_case.symbols = constant
dotnet_naming_rule.constant_should_be_pascal_case.style = pascal_case

dotnet_naming_rule.private_or_internal_static_field_should_be_private_static_camel_case.severity = warning
dotnet_naming_rule.private_or_internal_static_field_should_be_private_static_camel_case.symbols = private_or_internal_static_field
dotnet_naming_rule.private_or_internal_static_field_should_be_private_static_camel_case.style = private_static_camel_case

dotnet_naming_rule.private_or_internal_field_should_be_private_camel_case.severity = warning
dotnet_naming_rule.private_or_internal_field_should_be_private_camel_case.symbols = private_or_internal_field
dotnet_naming_rule.private_or_internal_field_should_be_private_camel_case.style = private_camel_case

# Symbol specifications

dotnet_naming_symbols.interface.applicable_kinds = interface
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.interface.required_modifiers =

dotnet_naming_symbols.private_or_internal_field.applicable_kinds = field
dotnet_naming_symbols.private_or_internal_field.applicable_accessibilities = internal, private, private_protected
dotnet_naming_symbols.private_or_internal_field.required_modifiers =

dotnet_naming_symbols.private_or_internal_static_field.applicable_kinds = field
dotnet_naming_symbols.private_or_internal_static_field.applicable_accessibilities = internal, private, private_protected
dotnet_naming_symbols.private_or_internal_static_field.required_modifiers = static

dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.types.required_modifiers =

dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.non_field_members.required_modifiers =

dotnet_naming_symbols.constant.applicable_kinds = field
dotnet_naming_symbols.constant.applicable_accessibilities = *
dotnet_naming_symbols.constant.required_modifiers = const

# Naming styles

dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case

dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.capitalization = pascal_case

dotnet_naming_style.private_static_camel_case.required_prefix = s_
dotnet_naming_style.private_static_camel_case.required_suffix =
dotnet_naming_style.private_static_camel_case.word_separator =
dotnet_naming_style.private_static_camel_case.capitalization = camel_case

dotnet_naming_style.private_camel_case.required_prefix = _
dotnet_naming_style.private_camel_case.required_suffix =
dotnet_naming_style.private_camel_case.word_separator =
dotnet_naming_style.private_camel_case.capitalization = camel_case
53 changes: 53 additions & 0 deletions .github/workflows/pages-upload-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Trigger the action on push to ezrSquared-re
on:
push:
branches:
- ezrSquared-re

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
actions: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
publish-docs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Signing
run: |
New-Item -ItemType "directory" -Path Secrets
Set-Content -Path Secrets\sgKey.txt -Value '${{ secrets.LIB_SIGNING_KEY }}'
certutil -decode Secrets\sgKey.txt Secrets\sgKey.snk

- name: .NET Setup
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x

# Build ezr², install docfx and generate the docs.
- run: dotnet build ezrSquared.sln -c Release
- run: dotnet tool update -g docfx
- run: docfx docs/docfx.json

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: 'docs/_site'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
9 changes: 4 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ x86/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Bb]inaries/
[Ii]ntermediates/
[Oo]ut/
[Ll]og/
[Ll]ogs/
Expand Down Expand Up @@ -364,6 +364,5 @@ FodyWeavers.xsd

# --------------------------------------------------

Graphics/Visualization.png
Offline\ Site/ezrSquared\ Offline/
*.zip
[Ll]ibraries/
[Ss]ecrets/
Loading