资 源 简 介
Introduction
Vala-lemon-extractor, in conjunction with Flex, Lemon and valac (another open source utilities) allows to create compiler for custom programming language, or parser for data definition expressed as text in whatever format.
Flex and Lemon are designed to take actions written in C language. The goal of vala-lemon-extractor is to bring the power of those tools to the world of high-level programming.
Vala is object oriented language, similar to C#, though compilable to machine native code.
Vala-lemon-extractor extracts Flex/Lemon grammar definitions from metadata contained in vala source files. When you run vala-lemon-extractor from command line, it operates on *.vala files in current directory. If it finds a class that has at least one method marked with [Flex()] attribute, it produces Flex scanner for this class. There can be many such classes, and for each of them separate Flex scanner will be produced. If val