remove-rune-literal #8
@ -25,7 +25,7 @@ func ro cBasicPhrases
|
||||
[fn [gn 329 983 57] 123]
|
||||
func ro dArgumentTypes
|
||||
---
|
||||
[bird tree butterfly.wing "hello world" grass:Int:8:mut]
|
||||
[bird tree butterfly.wing 'hello world' grass:Int:8:mut]
|
||||
func ro eMath
|
||||
> x:Int
|
||||
> y:Int
|
||||
|
@ -8,11 +8,11 @@ func TestMeta (test *testing.T) {
|
||||
cwd, _ := os.Getwd()
|
||||
checkTree ("../tests/parser/meta", false,
|
||||
`:arf
|
||||
author "Sasha Koshka"
|
||||
license "GPLv3"
|
||||
require "` + filepath.Join(cwd, "./some/local/module") + `"
|
||||
require "/usr/local/include/arf/someLibraryInstalledInStandardLocation"
|
||||
require "/some/absolute/path/to/someModule"
|
||||
author 'Sasha Koshka'
|
||||
license 'GPLv3'
|
||||
require '` + filepath.Join(cwd, "./some/local/module") + `'
|
||||
require '/usr/local/include/arf/someLibraryInstalledInStandardLocation'
|
||||
require '/some/absolute/path/to/someModule'
|
||||
---
|
||||
`, test)
|
||||
}
|
||||
|
@ -34,16 +34,16 @@ func (tree SyntaxTree) ToString (indent int) (output string) {
|
||||
output += doIndent(indent, ":arf\n")
|
||||
|
||||
if tree.author != "" {
|
||||
output += doIndent(indent, "author \"", tree.author, "\"\n")
|
||||
output += doIndent(indent, "author '", tree.author, "'\n")
|
||||
}
|
||||
|
||||
if tree.license != "" {
|
||||
output += doIndent(indent, "license \"", tree.license, "\"\n")
|
||||
output += doIndent(indent, "license '", tree.license, "'\n")
|
||||
}
|
||||
|
||||
for _, name := range sortMapKeysAlphabetically(tree.requires) {
|
||||
require := tree.requires[name]
|
||||
output += doIndent(indent, "require \"", require, "\"\n")
|
||||
output += doIndent(indent, "require '", require, "'\n")
|
||||
}
|
||||
|
||||
output += doIndent(indent, "---\n")
|
||||
|
@ -13,7 +13,7 @@ type ro bBitFields:Obj
|
||||
ro that:Int & 1
|
||||
ro this:Int 298 & 24
|
||||
type ro cInit:Obj
|
||||
ro that:String "hello world"
|
||||
ro that:String 'hello world'
|
||||
ro this:Int 23
|
||||
type ro dInitInherit:aBasic
|
||||
ro that 9384
|
||||
@ -24,7 +24,7 @@ type ro eInitAndDefine:aBasic
|
||||
ro born:Int 4
|
||||
ro in:Int
|
||||
ro the:Int:3 (9348 92384 92834)
|
||||
ro walls:String "live in the walls, die in the walls."
|
||||
ro walls:String 'live in the walls, die in the walls.'
|
||||
type ro fBasic:Int
|
||||
type ro gBasicInit:Int
|
||||
6
|
||||
|
@ -27,7 +27,7 @@ func ro cBasicPhrases
|
||||
|
||||
func ro dArgumentTypes
|
||||
---
|
||||
[bird tree butterfly.wing "hello world"
|
||||
[bird tree butterfly.wing 'hello world'
|
||||
grass:Int:mut:8]
|
||||
|
||||
func ro eMath
|
||||
|
Reference in New Issue
Block a user