Skip to content

Commit

Permalink
feat: make it fully amix
Browse files Browse the repository at this point in the history
  • Loading branch information
trindadedev13 committed Jan 25, 2025
1 parent 7432b6d commit 76a27dd
Show file tree
Hide file tree
Showing 25 changed files with 107 additions and 107 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Robok-Amix
# Amix

A language to create layout

Expand All @@ -8,7 +8,7 @@ Write in .amx (Amix) and convert to Android Views (XML).

## Add to project

[![JitPack Release](https://jitpack.io/v/Robok-Engine/Robok-Amix.svg)](https://jitpack.io/#Robok-Engine/Robok-Amix)
[![JitPack Release](https://jitpack.io/v/AmixLang/Amix.svg)](https://jitpack.io/#AmixLang/Amix)

```kotlin
allprojects {
Expand All @@ -17,7 +17,7 @@ allprojects {
}
}

implementation("com.github.Robok-Engine:Robok-Amix:<version>")
implementation("com.github.AmixLang:Amix:<version>")
```

## Syntax
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/*
* This file is part of Robok © 2024.
* This file is part of Amix © 2024.
*
* Robok is free software: you can redistribute it and/or modify
* Amix is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Robok is distributed in the hope that it will be useful,
* Amix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Robok. If not, see <https://www.gnu.org/licenses/>.
* along with Amix. If not, see <https://www.gnu.org/licenses/>.
*/

import org.jetbrains.kotlin.gradle.dsl.JvmTarget
Expand All @@ -24,7 +24,7 @@ plugins {
`java-library`
}

group = "org.robok"
group = "org.amix"
version = libs.versions.lib.version.get()

java {
Expand All @@ -42,7 +42,7 @@ afterEvaluate {
publishing {
publications {
register("mavenRelease", MavenPublication::class) {
groupId = "org.robok"
groupId = "org.amix"
artifactId = "amix"
version = libs.versions.lib.version.get()
from(components["java"])
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ dependencyResolutionManagement {
}
}

rootProject.name = "Robok-Amix"
rootProject.name = "Amix"
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
package org.robok.amix
package org.amix

/*
* This file is part of Robok © 2024.
* This file is part of Amix © 2025.
*
* Robok is free software: you can redistribute it and/or modify
* Amix is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Robok is distributed in the hope that it will be useful,
* Amix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Robok. If not, see <https://www.gnu.org/licenses/>.
* along with Amix. If not, see <https://www.gnu.org/licenses/>.
*/

import org.robok.amix.compiler.AmixCompiler
import org.robok.amix.config.Config
import org.robok.amix.xml.AmixXmlGenerator
import org.amix.compiler.AmixCompiler
import org.amix.config.Config
import org.amix.xml.AmixXmlGenerator

class Amix {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
package org.robok.amix.annotation
package org.amix.annotation

/*
* This file is part of Robok © 2024.
* This file is part of Amix © 2024.
*
* Robok is free software: you can redistribute it and/or modify
* Amix is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Robok is distributed in the hope that it will be useful,
* Amix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Robok. If not, see <https://www.gnu.org/licenses/>.
* along with Amix. If not, see <https://www.gnu.org/licenses/>.
*/

@Retention(AnnotationRetention.SOURCE) annotation class Component(val name: String)
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
package org.robok.amix.compiler
package org.amix.compiler

/*
* This file is part of Robok © 2024.
* This file is part of Amix © 2024.
*
* Robok is free software: you can redistribute it and/or modify
* Amix is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Robok is distributed in the hope that it will be useful,
* Amix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Robok. If not, see <https://www.gnu.org/licenses/>.
* along with Amix. If not, see <https://www.gnu.org/licenses/>.
*/

import org.antlr.v4.runtime.CharStreams
import org.antlr.v4.runtime.CommonTokenStream
import org.antlr.v4.runtime.atn.PredictionMode
import org.antlr.v4.runtime.tree.ParseTreeWalker
import org.robok.amix.compiler.listener.AmixParserListener
import org.robok.amix.internal.antlr4.AmixLexer
import org.robok.amix.internal.antlr4.AmixParser
import org.robok.amix.xml.AmixXmlGenerator
import org.amix.compiler.listener.AmixParserListener
import org.amix.internal.antlr4.AmixLexer
import org.amix.internal.antlr4.AmixParser
import org.amix.xml.AmixXmlGenerator

/*
* Class that uses ANTLR4 to compile the Code and use { @link AmixParserListener }.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
package org.robok.amix.compiler
package org.amix.compiler

/*
* This file is part of Robok © 2024.
* This file is part of Amix © 2024.
*
* Robok is free software: you can redistribute it and/or modify
* Amix is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Robok is distributed in the hope that it will be useful,
* Amix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Robok. If not, see <https://www.gnu.org/licenses/>.
* along with Amix. If not, see <https://www.gnu.org/licenses/>.
*/

class AmixNullCodeException() : Exception("Amix Code cannot be null.")
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
package org.robok.amix.compiler.listener
package org.amix.compiler.listener

/*
* This file is part of Robok © 2024.
* This file is part of Amix © 2024.
*
* Robok is free software: you can redistribute it and/or modify
* Amix is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Robok is distributed in the hope that it will be useful,
* Amix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Robok. If not, see <https://www.gnu.org/licenses/>.
* along with Amix. If not, see <https://www.gnu.org/licenses/>.
*/

import org.robok.amix.internal.AttributeDefaults
import org.robok.amix.internal.antlr4.AmixBaseListener
import org.robok.amix.internal.antlr4.AmixParser.ArgumentContext
import org.robok.amix.internal.antlr4.AmixParser.ArgumentListContext
import org.robok.amix.internal.antlr4.AmixParser.ComponentContext
import org.robok.amix.internal.antlr4.AmixParser.GuiFileContext
import org.robok.amix.xml.AmixXmlGenerator
import org.amix.internal.AttributeDefaults
import org.amix.internal.antlr4.AmixBaseListener
import org.amix.internal.antlr4.AmixParser.ArgumentContext
import org.amix.internal.antlr4.AmixParser.ArgumentListContext
import org.amix.internal.antlr4.AmixParser.ComponentContext
import org.amix.internal.antlr4.AmixParser.GuiFileContext
import org.amix.xml.AmixXmlGenerator

class AmixParserListener(private val xmlGenerator: AmixXmlGenerator) : AmixBaseListener() {
private var componentName: String = ""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
package org.robok.amix.components
package org.amix.components

/*
* This file is part of Robok © 2024.
* This file is part of Amix © 2024.
*
* Robok is free software: you can redistribute it and/or modify
* Amix is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Robok is distributed in the hope that it will be useful,
* Amix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Robok. If not, see <https://www.gnu.org/licenses/>.
* along with Amix. If not, see <https://www.gnu.org/licenses/>.
*/

import org.robok.amix.annotation.Component
import org.robok.amix.config.Config
import org.robok.amix.ext.newLine
import org.robok.amix.ext.newLineBroken
import org.robok.amix.internal.AttributeDefaults
import org.robok.amix.internal.Utils.comment
import org.robok.amix.internal.Utils.convertStyleToFileName
import org.amix.annotation.Component
import org.amix.config.Config
import org.amix.ext.newLine
import org.amix.ext.newLineBroken
import org.amix.internal.AttributeDefaults
import org.amix.internal.Utils.comment
import org.amix.internal.Utils.convertStyleToFileName

internal class Components(
private val useComments: Boolean = false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
package org.robok.amix.config
package org.amix.config

/*
* This file is part of Robok © 2024.
* This file is part of Amix © 2024.
*
* Robok is free software: you can redistribute it and/or modify
* Amix is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Robok is distributed in the hope that it will be useful,
* Amix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Robok. If not, see <https://www.gnu.org/licenses/>.
* along with Amix. If not, see <https://www.gnu.org/licenses/>.
*/

import java.io.Serializable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
package org.robok.amix.converter
package org.amix.converter

/*
* This file is part of Robok © 2024.
* This file is part of Amix © 2024.
*
* Robok is free software: you can redistribute it and/or modify
* Amix is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Robok is distributed in the hope that it will be useful,
* Amix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Robok. If not, see <https://www.gnu.org/licenses/>.
* along with Amix. If not, see <https://www.gnu.org/licenses/>.
*/

/*
* This class converts the Robok Amix Attributes Names to Android View Names.
* This class converts the Amix Amix Attributes Names to Android View Names.
*/

internal object AttributeConverter {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
package org.robok.amix.converter
package org.amix.converter

/*
* This file is part of Robok © 2024.
* This file is part of Amix © 2024.
*
* Robok is free software: you can redistribute it and/or modify
* Amix is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Robok is distributed in the hope that it will be useful,
* Amix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Robok. If not, see <https://www.gnu.org/licenses/>.
* along with Amix. If not, see <https://www.gnu.org/licenses/>.
*/

internal object AttributesAbbreviations {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
package org.robok.amix.ext
package org.amix.ext

/*
* This file is part of Robok © 2024.
* This file is part of Amix © 2024.
*
* Robok is free software: you can redistribute it and/or modify
* Amix is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Robok is distributed in the hope that it will be useful,
* Amix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Robok. If not, see <https://www.gnu.org/licenses/>.
* along with Amix. If not, see <https://www.gnu.org/licenses/>.
*/

/*
Expand Down
Loading

0 comments on commit 76a27dd

Please sign in to comment.