Skip to content

Add smart labelizing #3

@ccgauche

Description

@ccgauche

Smart Labellizeing (Aka: Real scopes)

We currently need to add '# to have a global scoped label.
With the new system if a label with a name 'a exists in the global scope and you use 'a it will be counted as a global label but if the label doesn't exist in the global scope it will be local.

Ex:

'a: 0
test {
    'a:10
    'a
}
test()

Here 'a will be global. At the end of the program, 'a will be set to the index of 10
Ex:

test {
    'ab:10
    'ab
}
test() 'ab

Here 'ab is local so an error will be thrown.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions