Commit graph

4874 commits

Author SHA1 Message Date
Mikhalkovich Stanislav 4a3239a7d1 Новые файлы Async 2024-07-12 21:06:00 +03:00
Mikhalkovich Stanislav a193b9c3ed Пока закомментировал семантическую проверку 2024-07-07 21:02:25 +03:00
Mikhalkovich Stanislav 3e3319000b одномерный 2024-07-07 15:58:10 +03:00
Mikhalkovich Stanislav 418a64a2c1 Перезалил новый yacc файл и пересобрал грамматику 2024-07-06 22:44:38 +03:00
Mikhalkovich Stanislav 0c997a59db Merge branch 'async-await' of https://github.com/pascalabcnet/pascalabcnet into async-await 2024-07-06 21:30:04 +03:00
Mikhalkovich Stanislav 6b1b7d6792 visit(SyntaxTree.sugared_expression - обработка await_node 2024-07-06 21:27:30 +03:00
AlexanderZemlyak ba4d274058
Async await merge (#3177)
* s.ToLines
RenameDirectory

* Исправление ToLines

* Убрал из грамматики узлы await - случайно оставались

* Sync `.ToLines` with `System.IO.StringReader` (#3154)

* 3.9.0.3494

* add tests

* #3152

* #3152

* Don't skip PCU errors in `CompileAllUnits`

* fix #3155

* Create the array types outside of any unit/scope

* Add `use` test

* RobotField - try в блоке создания

* Исправлена Range(a, b, step: real)

LightPT - CheckOutput может принимать параметры типа последователльность - они будут вытягиваться в одну последовательность
  Для этого исправлен FlattenElement
  FlattenOutput применяется автоматически - его теперь не надо вызывать явно
TaskLoops поправлен и упрощен в соответствии с CheckOutput

* Поправлен LightPT

Упрощены TasksArr.pas TasksMatr.pas TasksStr.pas

* fix `GetReferenceFileName` dll copy (#3173)

* Исправление зависимостей проектов (#3174)

* Add workflow to build each project separately

* Make `Compiler` depend on `PascalLanguage` and `PascalABCSaushkinParser`  06e595

* Make IDE's depend on `PABCNETC`

It's launched as a separate process from IDE

* Revert pascal language moving to language plugins (#3175)

* Return Parsers folder with standard parsers and move SyntaxTreeConverters back to Core

* Rename PascalLanguage project to PascalABCLanguageInfo

* Fix pascal dll loading

* Поправлены Tasks1Arr.pas Tasks1Begin.pas Tasks1BoolIfCase.pas

* Поправил в трех проектах пути к bin

LightPT - Read...(prompt) - больше комбинаций

Loop_If_2_Sum в Tasks1Loops.pas

* #3172

* 3.9.0.3500
Хороший коммит )

* Remove extra tests

* Fix dependencies in Compiler project

* LightPT - убрал CheckOutputNew
TasksArr.pas, TasksStr.pas - правки

* #3164

* Убрали зависимость компилятора от парсера Паскаля

---------

Co-authored-by: Mikhalkovich Stanislav <miks@math.sfedu.ru>
Co-authored-by: Sun Serega <sunserega2@gmail.com>
Co-authored-by: Ivan Bondarev <ibond84@googlemail.com>
2024-07-05 23:04:23 +03:00
Mikhalkovich Stanislav 53e850ba45 visit(await_node a) в Async/AsyncVisitor.cs - небольшое изменение 2024-07-05 19:26:19 +03:00
Mikhalkovich Stanislav 729881a836 Перекомпилировал грамматику 2024-06-24 19:52:15 +03:00
Kalsash 43c728883f
Async await fix (#3159)
* Добавил комментарии для async/await

* source_context fix

* ReplaceVarNames fix

* Parametrs fix

* async_defs fix

* no await fix

* исправлен баг с объявлением Task<T> без инициализации

* await как bin_expr может теперь быть в if_node.condition

* Обработка операций с await

* генерация GetResult

* OperationsVisitor fix

* Исправил вложенные конструкции с await

* ProcedureSet fix

---------

Co-authored-by: Aleksandr Kalinin <akalinin@sfedu.ru>
Co-authored-by: Mikhalkovich Stanislav <miks@math.sfedu.ru>
2024-06-24 09:40:54 +03:00
Mikhalkovich Stanislav 46e98e8c71 ReplaceStatementUsingParent - в нескольких местах в LoweringAsyncVisitor.cs 2024-06-22 21:27:20 +03:00
Mikhalkovich Stanislav e466c4b07b ReplaceStatement -> ReplaceStatementUsingParent в LoweringVisitor 2024-06-22 21:24:15 +03:00
Kalsash ced4424196
Async await# GenGetResult (#3151)
* Добавил комментарии для async/await

* source_context fix

* ReplaceVarNames fix

* Parametrs fix

* async_defs fix

* no await fix

* исправлен баг с объявлением Task<T> без инициализации

* await как bin_expr может теперь быть в if_node.condition

* Обработка операций с await

* генерация GetResult

* OperationsVisitor fix

---------

Co-authored-by: Aleksandr Kalinin <akalinin@sfedu.ru>
Co-authored-by: Mikhalkovich Stanislav <miks@math.sfedu.ru>
2024-06-18 08:57:06 +03:00
Mikhalkovich Stanislav 4100032f2b .y .lex cs generated 2024-06-17 19:02:11 +03:00
Mikhalkovich Stanislav 015bd7a78c Merge branch 'master' into async-await
# Conflicts:
#	Languages/Pascal/PascalABCParserNewSaushkin/ABCPascal.cs
#	Languages/Pascal/PascalABCParserNewSaushkin/ABCPascal.y
#	Languages/Pascal/PascalABCParserNewSaushkin/ABCPascalYacc.cs
#	Languages/Pascal/PascalABCParserNewSaushkin/PABC.ymc
2024-06-15 21:20:30 +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
Kalsash e19b4ec4fa
No await fix (#3148)
* Добавил комментарии для async/await

* source_context fix

* ReplaceVarNames fix

* Parametrs fix

* async_defs fix

* no await fix

* исправлен баг с объявлением Task<T> без инициализации

---------

Co-authored-by: Aleksandr Kalinin <akalinin@sfedu.ru>
2024-06-13 20:39:35 +03:00
Mikhalkovich Stanislav 57157f5138 async-await правка теста претти принтера 2024-06-12 16:53:37 +03:00
Kalsash 6de1848ec9
Async await fix (#3146)
* Добавил комментарии для async/await

* source_context fix

* ReplaceVarNames fix

* Parametrs fix

* async_defs fix

---------

Co-authored-by: Aleksandr Kalinin <akalinin@sfedu.ru>
2024-06-12 16:14:38 +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
Mikhalkovich Stanislav 9fb7fba1e1 Новый AsyncVisitor 2024-06-05 20:35:46 +03:00
AlexanderZemlyak 9f8f982cc2
Delete xml documentation of standard modules (#3140) 2024-06-04 21:49:19 +02:00
Aleksandr Kalinin 7287a68805 async fix 2024-06-04 19:34:39 +03:00
Aleksandr Kalinin 155d0a01ba async/await 2024-06-03 17:39:57 +03: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