Commit graph

4872 commits

Author SHA1 Message Date
Sun Serega 04e2a40dc6
Исправление зависимостей проектов (#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
2024-07-02 16:10:21 +03:00
Sun Serega aa43bfb128
fix GetReferenceFileName dll copy (#3173) 2024-07-02 00:25:09 +03:00
Mikhalkovich Stanislav 67aa35b9dc Поправлен LightPT
Упрощены TasksArr.pas TasksMatr.pas TasksStr.pas
2024-07-01 21:06:54 +03:00
Mikhalkovich Stanislav bd7059c079 Исправлена Range(a, b, step: real)
LightPT - CheckOutput может принимать параметры типа последователльность - они будут вытягиваться в одну последовательность
  Для этого исправлен FlattenElement
  FlattenOutput применяется автоматически - его теперь не надо вызывать явно
TaskLoops поправлен и упрощен в соответствии с CheckOutput
2024-06-30 12:41:37 +03:00
Mikhalkovich Stanislav 008a2eddfe RobotField - try в блоке создания 2024-06-27 13:39:13 +03:00
Ivan Bondarev 31975754da
Merge pull request #3156 from SunSerega/fix-3155
Исправление #3155
2024-06-24 20:42:33 +02:00
Sun Serega e8ea9d7b9a
Add use test 2024-06-23 21:56:36 +02:00
Sun Serega f3cfb18eab
Create the array types outside of any unit/scope 2024-06-23 20:46:40 +02:00
Sun Serega 7931ec4ff9
fix #3155 2024-06-23 20:39:55 +02:00
Sun Serega fb7c3988e6
Don't skip PCU errors in CompileAllUnits 2024-06-23 20:38:23 +02:00
Ivan Bondarev a402b00144 #3152 2024-06-23 14:33:09 +02:00
Ivan Bondarev 2007fd155c #3152 2024-06-23 14:21:12 +02:00
Sun Serega d633933833
add tests 2024-06-22 23:06:58 +02:00
Mikhalkovich Stanislav 73369527c8 3.9.0.3494 2024-06-22 19:44: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