-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#329 - disable mly parser to avoid exception
- Loading branch information
Showing
29 changed files
with
744 additions
and
1,405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
package com.reason.ide.files; | ||
|
||
import com.intellij.openapi.fileTypes.FileType; | ||
import com.intellij.psi.FileViewProvider; | ||
import com.reason.lang.ocamlyacc.OclYaccLanguage; | ||
import org.jetbrains.annotations.NotNull; | ||
import com.intellij.openapi.fileTypes.*; | ||
import com.intellij.psi.*; | ||
import com.reason.lang.ocamlyacc.*; | ||
import org.jetbrains.annotations.*; | ||
|
||
public class MlyFile extends FileBase { | ||
public MlyFile(@NotNull FileViewProvider viewProvider) { | ||
super(viewProvider, OclYaccLanguage.INSTANCE); | ||
} | ||
public MlyFile(@NotNull FileViewProvider viewProvider) { | ||
super(viewProvider, OclYaccLanguage.INSTANCE); | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public FileType getFileType() { | ||
return MlyFileType.INSTANCE; | ||
} | ||
@Override | ||
public @NotNull FileType getFileType() { | ||
return MlyFileType.INSTANCE; | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public String toString() { | ||
return MlyFileType.INSTANCE.getDescription(); | ||
} | ||
@Override | ||
public @NotNull String toString() { | ||
return MlyFileType.INSTANCE.getDescription(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,36 @@ | ||
package com.reason.ide.files; | ||
|
||
import com.intellij.openapi.fileTypes.LanguageFileType; | ||
import com.reason.lang.ocamlyacc.OclYaccLanguage; | ||
import icons.ORIcons; | ||
import com.intellij.openapi.fileTypes.*; | ||
import com.reason.lang.ocamlyacc.*; | ||
import icons.*; | ||
import org.jetbrains.annotations.*; | ||
|
||
import javax.swing.*; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public class MlyFileType extends LanguageFileType { | ||
public static final MlyFileType INSTANCE = new MlyFileType(); | ||
static final String EXTENSION = "mly"; | ||
|
||
private MlyFileType() { | ||
super(OclYaccLanguage.INSTANCE); | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public String getName() { | ||
return "MlY"; | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public String getDescription() { | ||
return "OCaml yacc parser"; | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public String getDefaultExtension() { | ||
return EXTENSION; | ||
} | ||
|
||
@Nullable | ||
@Override | ||
public Icon getIcon() { | ||
return ORIcons.OCL_GREEN_FILE; | ||
} | ||
public static final MlyFileType INSTANCE = new MlyFileType(); | ||
|
||
private MlyFileType() { | ||
super(OclYaccLanguage.INSTANCE); | ||
} | ||
|
||
@Override | ||
public @NotNull String getName() { | ||
return "MlY"; | ||
} | ||
|
||
@Override | ||
public @NotNull String getDescription() { | ||
return "OCaml yacc parser"; | ||
} | ||
|
||
@Override | ||
public @NotNull String getDefaultExtension() { | ||
return "mly"; | ||
} | ||
|
||
@Override | ||
public @Nullable Icon getIcon() { | ||
return ORIcons.OCL_GREEN_FILE; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.reason.lang.core.psi; | ||
|
||
import com.intellij.extapi.psi.*; | ||
import com.intellij.lang.*; | ||
import org.jetbrains.annotations.*; | ||
|
||
public class PsiOCamlSection extends ASTWrapperPsiElement { | ||
public PsiOCamlSection(ASTNode node) { | ||
super(node); | ||
} | ||
|
||
@Override | ||
public @NotNull String toString() { | ||
return "OCaml lazy section"; | ||
} | ||
} |
9 changes: 5 additions & 4 deletions
9
src/com/reason/lang/core/psi/ocamlyacc/OclYaccDeclaration.java
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.