What is parsing?

前端 未结 8 1087
猫巷女王i
猫巷女王i 2020-12-23 02:24

Parsing is something I come across a lot in development, but as a junior it is one of those things I assume I will get the hang of at some point, when it is needed. In my cu

相关标签:
8条回答
  • 2020-12-23 02:45

    In computer science and linguistics, parsing, or, more formally, syntactic analysis, is the process of analyzing a text, made of a sequence of tokens (for example, words), to determine its grammatical structure with respect to a given (more or less) formal grammar.

    :0)

    Wikipedia

    0 讨论(0)
  • 2020-12-23 02:48

    Don't attempt to write anything but a trivial parser yourself. There are good tools for this use ANTLR and bison are two I can think of.

    If you use the tools you'll be able to ask for help when you hit a problem.

    cheers, Martin.

    0 讨论(0)
提交回复
热议问题