ragel-go-examples

I'm trying to learn how to use ragel in Go libraries. As I'm implementing things for practice I'll add them here. I'll be using Go 1.1, though the examples should work in Go 1.0 as well.

  • 所有者: acsellers/ragel-go-examples
  • 平台:
  • 許可證: BSD 2-Clause "Simplified" License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Ragel Golang Examples

As I can't find good examples for Ragel code in Go1 style, and
I'm going to be implementing a bunch of different parser type
things to learn Ragel, I decided to go ahead and put my practice
code up on Github for the next person to learn from (hopefully).
I'm not associated with the people behind Ragel in any form.

Current Examples

All of the current code is 100% what I wrote excepting the Atoi,
which was from an official ragel example, but was modified to be
current Go style. I'm not sure how many examples I'm going to
write, but current goal is 50. The code I use for ragel is

ragel -Z -G2 -o <name>.go <name>.rl
  • Atoi - Convert an integer in a string to an int64
  • Atof - Convert a float in a string to a float64
  • HexDecode - Convert a hex string into an int64
  • Comma - Separate a string into values like a csv

Licensing

Any code is available under the 2-clause BSD License, a copy
of which is included as the file LICENSE.

主要指標

概覽
名稱與所有者acsellers/ragel-go-examples
主編程語言Go
編程語言Go (語言數: 2)
平台
許可證BSD 2-Clause "Simplified" License
所有者活动
創建於2013-07-06 02:44:07
推送於2013-07-06 06:14:26
最后一次提交2013-07-06 01:14:22
發布數0
用户参与
星數65
關注者數4
派生數13
提交數5
已啟用問題?
問題數0
打開的問題數0
拉請求數0
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?