Comments (4)
Тесты в таком духе?
var desired = new AddOperatorNode(new IntNode(1), new IntNode(2));
var code = "1 + 2";
Assert(Parser.Parse(code), desired)
from lens.
Да, именно так. Можешь посмотреть в ветке parser - там уже сделан десяток тестов.
from lens.
Такие тесты с удовольствием попишу :)
from lens.
Ок, условно считаю парсер готовым. Предлагаю такой порядок работы:
- Доделываем оставшиеся задачи по синтаксическому дереву (ответственный: @impworks).
- Доделываем дополнительные задачи по парсеру - в частности, #17 и #24 (ответственный: @ForNeVeR).
- Дописываем тесты для всех узлов синтаксического дерева (ну и вообще все сложные случаи, которые придут в голову) в ветке
parser
(ответственный: @impworks). - Добиваемся того, чтобы все тесты прошли успешно (ответственный: @ForNeVeR).
- Мержим ветку
parser
в веткуmaster
.
PS. Само собой, то, что кто-то "ответственен" за некую задачу, вовсе не значит, что ему не нужна / не положена помощь.
from lens.
Related Issues (20)
- Операции над функциями
- Мульти-объявление неинициализированных переменных HOT 1
- Ошибка в грамматике
- Интерфейс контекстно-зависимой типизации
- Ошибка при сохранении сборки - файл занят
- Проблема с тестами Translations HOT 1
- Поддержка атрибута Obsolete
- Поддержка Expression<T>
- Fix continuous integration
- Grammar file gets included after package installing HOT 2
- RegisterFunction doesn't seem to work HOT 1
- Ошибка с замыканием в цикле
- Bad IL format HOT 1
- Verbatim strings
- Наведение порядка в коде HOT 1
- LE3063: Only public, static, non-generic methods can be imported! HOT 4
- Улучшение для вывода типов
- Портирование на .NET Core HOT 4
- Properly detect System.Private library
- RegexNamedGroupsTryParseNoThrow test doesn't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lens.