Commit graph

4861 commits

Author SHA1 Message Date
samuraiGH 2436627fdd fixing method filtering 2024-06-28 19:18:32 +03:00
samuraiGH 15a05360a4 attempt to fix GetEnumerator resolving for compiled types 2024-06-28 17:25:39 +03:00
samuraiGH 4fd020d084 adding tests 2024-06-28 17:21:00 +03:00
Sun Serega c2ef6fdcd7
Sync .ToLines with System.IO.StringReader (#3154) 2024-06-22 16:02:04 +03:00
Mikhalkovich Stanislav a923c0b6c6 Убрал из грамматики узлы await - случайно оставались 2024-06-17 17:01:46 +03:00
Mikhalkovich Stanislav 434b5ac58b Merge branch 'master' of https://github.com/pascalabcnet/pascalabcnet 2024-06-17 15:33:04 +03:00
Mikhalkovich Stanislav 159933ca0d Исправление ToLines 2024-06-17 10:32:18 +03:00
Mikhalkovich Stanislav cf9a664f02 s.ToLines
RenameDirectory
2024-06-17 09:54:12 +03:00
Mikhalkovich Stanislav e0e7924134 Перегенерировал грамматику 2024-06-15 19:27:27 +03:00
Mikhalkovich Stanislav a5ec24d9a0 await переместил 2024-06-15 19:26:46 +03:00
Mikhalkovich Stanislav 41177e7bcd del doc 2024-06-15 19:25:19 +03:00
Ivan Bondarev 9cb14c8dd1 #3127 2024-06-10 20:59:03 +02:00
Ivan Bondarev 502f74467a #3123 2024-06-09 21:30:02 +02:00
Ivan Bondarev 8bddc9e62a #3123 2024-06-09 19:35:35 +02:00
Ivan Bondarev e5f60689cd #3125 2024-06-09 12:30:20 +02:00
Ivan Bondarev b844e02ff5 revert #3125 2024-06-09 12:10:43 +02:00
Ivan Bondarev dbf22ca9e8 #3125 2024-06-09 12:03:39 +02:00
Ivan Bondarev acab4c7c01 #3091 2024-06-09 10:50:26 +02:00
Ivan Bondarev eedacdfef5
Merge pull request #3118 from SunSerega/uses-in-fix
Исправление #3116
2024-06-09 10:41:06 +02:00
AlexanderZemlyak 9f8f982cc2
Delete xml documentation of standard modules (#3140) 2024-06-04 21:49:19 +02:00
Mikhalkovich Stanislav bda964c3af fix #3133 2024-05-31 22:01:54 +03:00
Mikhalkovich Stanislav 497566e325 В инсталляторе пока mini версия заменена обычной
из-за ложных срабатываний антивируса Яндекса

ProgrammRunner переписан на C# по той же причине

В Linux-версии убран rc.exe по той же причине
2024-05-28 16:45:53 +03:00
Mikhalkovich Stanislav 9aeff23c71 ProgrammRunner cs - на C# 2024-05-28 16:43:16 +03:00
AlexanderZemlyak c2111cf375
Change type of language field in syntax tree to be string (#3119)
* Change syntax tree language field to be string

Тип LanguageId заменен на string

* Fix unit language name assigning

* Update lexer and parser

* Add checks to avoid NullReferenceException

Проверки на null для SyntaxTree. (К падению компилятора они не приводили, т.к. они связаны с другими ошибками, например синтаксическими), но мешали отладке.

* Return initial lexer and parser versions

* Revert language name assigning
2024-05-28 14:16:49 +03:00
AlexanderZemlyak 8acf536300
Make changes for spython compatibility (#3131)
* Update parser tools

* Update NodesBuilder

* Update syntax_tree_visitor

* Update CompilationErrors
2024-05-28 14:16:03 +03:00
Mikhalkovich Stanislav 303a3cdb32 3.9.0.3485 2024-05-25 12:52:06 +03:00
AlexanderZemlyak 342375501b
New languages engine (#3120)
* Implement first version of languages interfaces and classes

ParsersController заменен на LanguageProvider.

* Update ParserTools.csproj

* Update RemoteCompiler.cs

* Update TestRunner

* Rename LanguageIntegrator project to Languages

* Update TestRunner

* Rename Parsers folder

* Rename PascalABCParser.dll to PascalABCLanguage.dll

* Reorganise LanguageIntegrator and rename DocTagsParser

* Update Release Generators

* Update language loading messages

* Update linux version

* Move BaseParser fields to ILanguage interface

* Revert "Update Release Generators"

This reverts commit 26a991c71b81e643d9fbd9a815ddca222768dda9.

* Revert "Rename PascalABCParser.dll to PascalABCLanguage.dll"

* Clean the mess in parser folders

* Organize namespaces properly

* Revert "Rename LanguageIntegrator project to Languages"

* Add new enclosing folders for standard languages

* Organize namespaces of LanguageIntegrator properly

* Rename StandardLanguages to Languages

* Comment the rest of Visual basic source code

* Update OutputPath in pascal parser project

* Move BaseParser methods to IParser

* Restore Pascal parser project initial structure

* Add PascalLanguage project

* Move SyntaxTreeConverters project to Languages\Pascal folder

* Rename SemanticRules in parser project

* Rename Errors1 to Errors in parser project

* Delete LambdaConverter dll from installer

* Update language integrator to load *Language.dll files

* Move lambda converter project to pascal lanuage dir

* Revert "Delete LambdaConverter dll from installer"

This reverts commit dd56f559ebe4f8c4c5c33752d44e6953001b96a5.

* Switch off VBNETParser building

* Delete syntax tree converters controller

* Delete lambda converter dll from repository

* Reorganize syntax tree to semantic tree conversion stage

* Add BaseLanguage class to make language initialization more neat

* Delete syntax tree post processors entity from ILanguage and refactor ABCStatistics calls

* Add new IDocParser interface for documentation comments parser

* Clean up folders

* Add helper data structures to reduce parameters amount in CompileInterface and CompileImplementation

* Add documentation to language classes

* Move Union struct in global namespace and project (ParserTools)

* Add more comments and a safe select language method

* Rename SemanticRules class

* Fix directives format null bug

* Add System.Linq ref to LanguageIntegrator

* Delete SyntaxToSemanticTreeConverter interface

* Add BaseSyntaxTreeConverter

* Call safe select language method in intellisence

* Delete source files providers from parsers

* Rename GetSyntaxTree method

* Change Prebuild tree to be virtual - not abstract

* Refresh documentation a bit

* Add temporary language check for ABCHealth button

* Add parser reference to parser tools

* Move current compilation unit assigning higher to avoid bug with unit check

* Delete null DirectiveInfo's and refactor directives' code

* Add a few more comments
2024-05-25 12:26:32 +03:00
AlexanderZemlyak d7bf53c283
Fix directives format null bug (#3129) 2024-05-22 10:27:55 +03:00
Mikhalkovich Stanislav c8e5e58cff 3.9.0.3483 2024-05-21 20:47:45 +03:00
Vladislav Krylov 5c38a46f7c
changed accces modifiers for outside visitors (#3128) 2024-05-21 20:17:57 +03:00
Mikhalkovich Stanislav 8a02d07fc3 3.9.0.3482 2024-05-18 00:05:32 +03:00
Mikhalkovich Stanislav e71b3cf188 Исправил вывод records, Tuples, Complex в Print 2024-05-17 23:48:28 +03:00
Ivan Bondarev 61e5aed5d9
Merge pull request #3117 from SunSerega/ldnull-ldc0
Замена `Ldnull` на `Ldc_I4_0`
2024-05-11 16:55:58 +02:00
Sun Serega 54514ab9cc
more intelligent Ldnull vs Ldc_I4_0 2024-05-10 19:31:36 +02:00
AlexanderZemlyak a6a25d955d
Preprocessor removal (#3113)
* Remove preprocessor

* Delete preprocessor localization files

* Clean up code

* Remove adding directive in EXCLUDETEXT section

* Fix directive adding in EXCLUDETEXT

* Remove preprocessor leftovers

* More clean up

* Rename preprocessor to ifdef_directive

* Fix building tree for formatter variable assigning

* Restore convert4.exe

* Rework adding directive in EXCLUDETEXT

Более логично будет все-таки так.
2024-05-09 19:04:31 +03:00
Sun Serega 71266a7b92
(the rest of the fix) 2024-05-09 12:12:02 +02:00
Sun Serega 8cca068f01
fix #3116 2024-05-09 12:06:15 +02:00
AlexanderZemlyak 8add90aca0
Refactor file searching functions in Compiler (#3111)
* Refactor GetUnitFileName function and used by it

* Revert nested ifs in file searching

* Revert sanity checks

* Return lost checks
2024-05-09 11:58:42 +03:00
Sun Serega 00dad9d76b
Ldnull => Ldc_I4_0 2024-05-09 10:01:05 +02:00
Mikhalkovich Stanislav 38c4901787 DrawMan исправления падения при запуске 2024-05-08 23:44:49 +03:00
Mikhalkovich Stanislav 6f4f3a8aa0 3.9.0.3478 2024-05-07 23:31:47 +03:00
Ivan Bondarev 8120fb9d7a Merge branch 'master' of https://github.com/pascalabcnet/pascalabcnet 2024-05-07 22:04:11 +02:00
Ivan Bondarev bff1425ede fixed semantic intellisense 2024-05-07 22:04:03 +02:00
Ivan Bondarev be090609f0
Merge pull request #3115 from SunSerega/bin-Lng-encoding
Исправление кодировки Lng файлов
2024-05-07 18:25:20 +02:00
Mikhalkovich Stanislav 443ed6d3d7 ObjectToString - убрал подчеркивание
TypeName - убрал артефакты реализации в implementation и тесты, это использующие
2024-05-07 12:19:23 +03:00
Mikhalkovich Stanislav 7681391663 TypeName - оставил в интерфейсе только необходимое 2024-05-06 22:30:41 +03:00
Sun Serega 42fd1da870
+1 2024-05-06 01:41:52 +02:00
Sun Serega ba8a510185
fix SEMICOLON_BEFORE_ELSE 2024-05-06 01:40:53 +02:00
Sun Serega 2358149c70 convert all Lng files to UTF8+BOM 2024-05-06 01:15:29 +02:00
Mikhalkovich Stanislav efafd27ffb Merge branch 'master' of https://github.com/pascalabcnet/pascalabcnet
# Conflicts:
#	Configuration/GlobalAssemblyInfo.cs
#	Configuration/Version.defs
#	Localization/DefaultLang.resources
#	Release/pabcversion.txt
#	ReleaseGenerators/PascalABCNET_version.nsh
2024-05-05 23:54:40 +03:00