Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/postmannen/lexml
Lex a xml file, and create tokens of the lex'ed values.
https://github.com/postmannen/lexml
Last synced: 1 day ago
JSON representation
Lex a xml file, and create tokens of the lex'ed values.
- Host: GitHub
- URL: https://github.com/postmannen/lexml
- Owner: postmannen
- License: mit
- Created: 2018-11-20T19:56:36.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-13T20:56:22.000Z (over 5 years ago)
- Last Synced: 2024-06-20T14:05:34.477Z (5 months ago)
- Language: Go
- Homepage:
- Size: 253 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# parrotxml2
Lex and parse the parrot ardrone3.xml file.
## How it works
First we create a lexer struct to hold all the info lexed. We then create methods on that struct for all the various lex actions.
We have one function that starts it all called lexStart(), and all it does is that it calls a method, and put whatever method that method returns into a variable. We then call that returned method on the next loop, and so on.
The for loop in lexStart() will exit if it at any point receives NIL from any of the methods executed. NIL is for example received when the last line of the XML file is read.
The program will then return to main, and terminate.## The flow of the functions
A flowchart diagram showing the flow of the program.
![alt_text](flow.jpg)