Commit graph

33 commits

Author SHA1 Message Date
Mikhalkovich Stanislav 160dd58195 fix #3324 2025-07-20 17:00:28 +03:00
AlexanderZemlyak 35c7bc5877
Add constructors to scanner, parser and parserTools (#3185)
* Add constructors to scanner, parser and parserTools

Добавил конструкторы, чтобы код был почище

* Change type of keywords in Scanner

* Make cast explicit

* Rebuild ABCPascal.cs
2024-07-21 13:36:15 +03:00
AlexanderZemlyak d5e9994ff2
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
2024-07-02 16:10:50 +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
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
AlexanderZemlyak acb1be8c92
Directives fixes (#3110)
* Unify directive errors

* Add new quotesAreSpecialSymbols field to DirectifeInfo

* Rewrite directive parsing and checks

* Delete R+ directive from pascal tests
2024-05-05 18:12:35 +03:00
AlexanderZemlyak efb4a4338f
New checks for directives added (#3099)
* Extract base classes from ParserTools (local) and GPPGParserHelper

* Fix string resources error

* Extract base class for unexpected token error

* Update ParserTools project file

* Add comments for compiler directives usages in compiler

* Add directives checks

* Move string constants to new project

* Implement scalable directives checks

* Remove known directives from compiler

* Fix PABCSystem namespace error

* Allow region and endregion with no params

* Allow parameters to endif directive

* Delete directive parameters extension checks

* Replace error with warning for uknown directive case

* Fix generate native code (semantic rule) assigning

* Improve error messages for directives

* Rename RunParseThread to SwitchOnIntellisence

Для отладки может требоваться отключение Intellisence на уровне кода. Для понятности метод назван SwitchOnIntellisence.

* Resolve merge conflicts

* Add new compiler errors for unsupported target framework and output file type

* Add documentation to directives checks

* Fix directives check loop
2024-05-04 20:21:50 +03:00
AlexanderZemlyak 4609a6dfd2
Extract base classes from ParserTools (local) and GPPGParserHelper (#3092)
* Extract base classes from ParserTools (local) and GPPGParserHelper

* Fix string resources error

* Extract base class for unexpected token error

* Update ParserTools project file
2024-04-23 10:47:48 +03:00
Mikhalkovich Stanislav d985949db1 Многострочные строки локализация и добавление сообщений об ошибках 2024-03-21 21:40:00 +03:00
Mikhalkovich Stanislav c66bfa7d92 Многострочные строковые литералы 2024-03-21 21:21:59 +03:00
Mikhalkovich Stanislav b33efb5915 Разделители _ в числовых константах 2023-09-13 11:16:18 +03:00
Mikhalkovich Stanislav e6aa9e838f fix #2554 2021-12-28 19:09:27 +03:00
Ivan Bondarev 29a2fb4156 #2521 2021-10-10 09:53:41 +02:00
Mikhalkovich Stanislav 46c439e99e fix #2366 2021-04-24 08:52:13 +03:00
Ivan Bondarev b4ced27c06 fix #1237 2021-01-08 12:14:40 +01:00
Ivan Bondarev 25cf7c0414 fix #2074 2021-01-08 11:53:15 +01:00
Mikhalkovich Stanislav e3b59ae5a1 Константы 123bi
В модуле School - ToBase(BigInteger)
2020-11-20 14:23:49 +03:00
Mikhalkovich Stanislav e603b1fd6d Mikhalkovich в Copyright
Заготовка для школьного плагина образцов кода
2019-07-28 23:53:15 +03:00
Бондарев Иван 416fc5836f fix #1609 2018-12-30 12:29:13 +01:00
Бондарев Иван ebc181d9e5 update for #285 2018-03-22 21:34:42 +01:00
Бондарев Иван 1e648d5a43 Форматные строки (#285) 2018-03-21 21:01:54 +01:00
Бондарев Иван f59c462fe7 power operator (#169) 2017-12-29 22:31:00 +01:00
miks1965 04861bc23f bug fix #469
GraphWPF
Samples on GraphWPF
2017-08-26 00:30:33 +03:00
Бондарев Иван 003c3c9983 Добавлено предупреждение: Использование нелокальной переменной в качестве счетчика цикла 2016-09-15 20:13:02 +02:00
miks1965 cabc8fe3c1 TYPE_NAME_EXPECTED=Ожидалось имя типа 2016-02-20 21:46:02 +03:00
miks1965 288c9a0606 OnMouseDown := procedure(x,y,mb) -> if mb=1 then Circle(x,y,5) 2016-01-30 02:15:19 +03:00
miks1965 f7c37251b5 var a: 0..integer.MaxValue; - теперь точки в диапазонном типе работают 2016-01-30 00:14:23 +03:00
miks1965 1226bee7ea build_tree_for_formatter 2016-01-18 08:12:50 +03:00
miks1965 ec2318107c Убрал ненужные узлы синтаксического дерева 2015-07-30 14:02:48 +03:00
miks1965 bdb595b738 Самая опасная правка последнего времени. expression - больше не потомок statement. Но упали тесты форматирования 2015-06-12 20:31:38 +03:00
Бондарев Иван 0983257ee6 added license info 2015-06-02 21:52:35 +02:00
Бондарев Иван e6e67c193c initial commit 2015-05-14 21:35:07 +02:00