This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- vi: syntax=lua ts=4 sw=4 et: | |
| -- | |
| -- FILE: csv.lua | |
| -- AUTHOR: LeeoNix | |
| -- DESCRIPTION: parse csv file use state machine | |
| -- NOTES: --- | |
| -- | |
| local C_INV = 1 -- invalid characters | |
| local C_COMMA = 2 -- , |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coding: gbk | |
| <%! | |
| from textwrap import wrap | |
| %> | |
| local ${machine.name} = require '${machine.name}' | |
| local delegate = {} | |
| -------------------------------------------------------------------------------- | |
| -- input | |
| % for i in machine.inputs: |
NewerOlder