Skip to content

bernardobreder/apple-lexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introdução

...

Token {
    word: String
    type: int
    line: int
    column: int
}

Exemplo

O exemplo abaixo irá criar um Json, aplicando algumas mudanças e revertendo

let tokens: [Token] = Lexer().lex("a b c")
print(tokens.length) // 3
print(tokens[0]) // {token: "a", type: string, ...}
print(tokens[1]) // {token: "a", type: string, ...}
print(tokens[2]) // {token: "a", type: string, ...}

About

[iOS][MacOS][Linux] Module of Mexer of Language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages