Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » Some projects are ready to become open-source
Re: Some projects are ready to become open-source [message #43099 is a reply to message #43030] Tue, 06 May 2014 23:34 Go to previous messageGo to previous message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

BNF - special way to parse and generate raw data using some protocol. For example:
http://en.wikipedia.org/wiki/Syntax_diagram#Example
Package contains classes describing BNF-articles. Each BNF-article is capable of two main functions: parsing and generation, which means converting a number of Values from/to the String. You may construct these articles using their operators, but package gives you much more powerful way. Calling CreateDefaultBNFFunctions() creates rules to construct new BNF-articles from EBNF description.
Parsing/generation process is made within primitive virtual state machine using stack and registers.
If you need custom parse/gen function working within your BNF description, you may write it and register it in runtime with bnfParseProcs.Add()/bnfGenProcs.Add() calls. There's already added bunch of functions to support binary protocols and various crc types.
It is working and it is stable. But currently I don't think that primitive stack/register virtual state machine is the best choice here. So I'd be grateful if anyone interested in optimizing the machine will do the thing. Of course, I'll be in touch and answer all the questions and/or help with upgrade to more optimized version.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SysInfo: Added GetAvailableSocketPort
Next Topic: SysInfoGui - some improvements
Goto Forum:
  


Current Time: Sat Apr 20 08:19:22 CEST 2024

Total time taken to generate the page: 0.06043 seconds