2023-02-01
TOKENICER解析器源码
一款国外开发的创建自己语法的解析器可以根据自己定义的规则解析出相应的C#和VB.NET代码Oneofthemoredifficulttasksincomputerscienceisbuildingparsersandcompilers.Therearealotoftoolsavailablethataidinthetedioustask,mostnotably,FlexandYacc,bothavailableontheLinux/UNIXplatform.TheprogramIpresenthereinthisarticleiscalledTokenIcer.ItissimilartoFlex,butTokenIcerprovidesaniceeasytouseGUIthatservesasaneditorforyourrules,aswellasatestbedfortestingyourrules.Inaddition,onceyourparsingruleshavebeendefined,TokenIcercancreateaparserclass,basedonyourrul