Commit graph

29 commits

Author SHA1 Message Date
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
Sun Serega 34ebf14bb2 fix #2652 2022-04-09 16:18:22 +03:00
Sun Serega 0d3a4e3b9e fix #2640 2022-03-20 00:55:39 +02:00
Ivan Bondarev dbab1c4d2b #2416 2021-01-31 12:08:33 +01:00
Ivan Bondarev 5d4f7091fe fix #2281
fix #2278
2020-12-28 18:16:22 +01:00
Mikhalkovich Stanislav fc234f7cc4 Исправление ошибки с захватом лямбдой переменной, объявленной в виде var (m,n) := ... 2020-08-15 22:56:19 +03:00
Mikhalkovich Stanislav dc23f3eadd Залил код, в результате которого падает сборка
В принципе, чтобы вернуть - в трёх visit восстановить вначале AddError и включить синтаксический визитор AssignVarTuple

Ещё - ABCStatisticsVisitors.cs - когда откатим - не удалять
2020-08-15 10:14:47 +03:00
Mikhalkovich Stanislav 8941485088 fix #2136 2020-06-27 12:40:19 +03:00
Mikhalkovich Stanislav e603b1fd6d Mikhalkovich в Copyright
Заготовка для школьного плагина образцов кода
2019-07-28 23:53:15 +03:00
Mikhalkovich Stanislav cdd4e0447e fix #1947 2019-06-26 21:22:25 +03:00
Бондарев Иван 97b517e798 bug fix #1890 2019-03-28 20:19:41 +01:00
Mikhalkovich Stanislav 8df7bac82c proc_body сделано типа object в function_lambda_definition
Небольшие правки PABCSystem.pas
2019-02-12 10:19:33 +03:00
miks1965 94dc715c40 fix #1443 2018-10-30 23:24:08 +03:00
miks1965 b796cdd635 Merge branch 'master' of https://github.com/pascalabcnet/pascalabcnet 2017-10-23 13:25:43 +03:00
miks1965 674df68011 AdjacentGroup - sequence of array
if (hn == null) throw new Exception("Попытка добавить уже добавленное имя "+ Name + " в HashTable. Обратитесь к разработчикам");

в SymbolTable

Попытка учесть классовые переменные при захвате в лямбдах
2017-10-23 13:25:37 +03:00
andrewlord607 aa79c94f6f Небольшой рефакторинг таблицы символов. 2017-10-23 11:21:15 +03:00
Бондарев Иван 305dcdc034 bug fix #497 2017-10-08 17:03:23 +02:00
andrewlord607 4fddf5c66a SymbolTable refactoring #2 2017-05-20 21:20:02 +03:00
andrewlord607 8a6506e73e SymTable refactoring 2017-05-09 12:52:40 +03:00
Бондарев Иван 11408f3042 bug fix #284 2017-02-13 19:41:06 +01:00
Бондарев Иван c863fd900d bug fix issue #96 2016-03-12 23:15:33 +01:00
Бондарев Иван a6a3d8369e bug fix issue #61 2016-02-07 13:03:06 +01:00
Бондарев Иван 3333c549a1 bug fix issue #60 2016-02-04 22:05:20 +01:00
miks1965 1fccb1e103 Обновлен проект с визиторами.
Исправлен ToString в write.
Убраны параметры по умолчанию из метода расширения Print (пока это вызывает падение)
2015-08-10 11:31:02 +03:00
miks1965 ec2318107c Убрал ненужные узлы синтаксического дерева 2015-07-30 14:02:48 +03:00
miks1965 39449dffb4 Переделанные AbstractVisitor, WalkingVisitor.
Индексатор у syntax_tree_node теперь возвращает только подузлы, производные от syntax_tree_node
2015-07-27 21:54:07 +03:00
RomanSaushkin 1b61879a42 Вложенные лямбды 2015-06-11 09:20:31 +04:00
Бондарев Иван 092d84d664 added license info in source files 2015-06-01 21:15:17 +02:00
Бондарев Иван e6e67c193c initial commit 2015-05-14 21:35:07 +02:00